PDA

View Full Version : vbox throw error



joefox
12 Feb 2010, 8:01 PM
I took this example right from the examples page, however, it seems to not work, any ideas on whats going on, or what im missing?


title: 'Support Search',
iconCls:'telephone_red',
closable:false,
autoScroll:true,
defaults:{style:'padding:5px'},
items:[{
layout:'vbox',
layoutConfig: {
align : 'stretch',
pack : 'start',
},
items: [{
html:'panel 1', flex:1
},{
html:'panel 2', height:150
},{
html:'panel 3', flex:2
}]
}]

realjax
13 Feb 2010, 12:56 AM
Remove the trailing comma in the first items object definition.

joefox
13 Feb 2010, 1:00 PM
Whats the difference in a vbox then if i use an achor with 100% 100%?

fay
13 Feb 2010, 1:05 PM
I believe the reference was to this:


pack : 'start', // <-- will cause problems in IE

realjax
13 Feb 2010, 1:11 PM
Indeed. But then again, maybe I have misunderstood your original 'question'


however, it seems to now work

what exactly were you asking?