PDA

View Full Version : Scrollbar hides content



plalx
22 Feb 2011, 9:03 AM
Hi,

This is probably a trivial problem, but I haven't found a good solution for it yet. Considering the following pseudo-code, the childs contained within the container with the column layout aren't resizing when the scrollbar pops in the main container so the 'test 2' panel gets hidden a bit. The items outside the column layout (test 3 and test 4) are getting resized by the browser automatically so there's not any problem with theses. If I resize the browser window after the scrollbar appeared, everything will be sized correctly, but as far as I know, there is no way to detect when the scrollbar will appear so that I can fire the resize event manually... and even if I could, I doubt that would be the best solution...

Any ideas?



{
title: 'I am a tab in a tab panel',
layout: 'auto', //Container layout, no resize
items: [
{
xtype: 'container',
layout: 'column',
items: [
{ title: 'test 1', columnWidth: .5, style: 'margin-right: 20px;' },
{ title: 'test 2', columnWidth: .5 }
]
},
{
title: 'test 3'
},
{
title: 'test 4'
}
]
}