PDA

View Full Version : layout border



feva
5 Nov 2011, 7:58 AM
region:'west',
width: 240,
id: 'west-region-container',
padding: '0 0 5 5',
layout: 'vbox',
cls: 'viewport-top-bg',
defaults: {
xtype: 'container',
width: "100%"
},
items: [
...treepanel




treepanel overflow shows, can't see the buttons of treepanel.

set:


defaults: {
xtype: 'container',
width: "235"
},

It's ok.

mitchellsimoens
16 Nov 2011, 6:55 AM
width cannot be a string, it has to be a number.

Valid:

width: 200

Not valid:

width: '100%'
width: '200px'