-
19 Apr 2011 4:10 AM #1
[B3] VBox-Layout ignores align/pack?
[B3] VBox-Layout ignores align/pack?
I try to use the VBox-Layout. But even the most simple Example doesn't work.
Any hints?PHP Code:Ext.onReady(function() {
var panel = Ext.create('Ext.panel.Panel',{
title:'VBox-Test',
margin:20,
width:300,
height:300,
layout:'vbox',
pack:'center',
align:'center'
items:[{
xtype:'button',
text:'Button 1'
},{
xtype:'button',
text:'Button 2'
},{
xtype:'button',
text:'Button 1'
}]
});
panel.render(document.body);
});
thx
-
19 Apr 2011 6:02 AM #2
Try:
Code:layout: { type: 'vbox', pack:'center', align:'center' }
-
19 Apr 2011 9:28 AM #3
Similar Threads
-
[CLOSED]hbox layout: layoutConfig parameters 'pack' and 'align' not working
By jan.harmsen in forum Ext:BugsReplies: 7Last Post: 24 Feb 2011, 1:25 PM -
vbox-layout inside a border-layout with a grid + sizing
By tobiu in forum Community DiscussionReplies: 1Last Post: 21 Jul 2010, 7:14 AM -
Way to right align vbox items?
By estesbubba in forum Ext 3.x: Help & DiscussionReplies: 6Last Post: 26 Apr 2010, 10:25 AM -
[2.0.2] Grid in a complex layout ignores plugins!
By lupin85.luca in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 14 Mar 2008, 2:12 AM


Reply With Quote