PDA

View Full Version : Does Ext have a facility for expanding an element to fill available whitespace?



js_coder
23 Jul 2009, 5:52 AM
For example, I have a TabPanel that is a top-level element (parent is body). I can set width to 100%, but not height. Does Ext have a facility to expand this element to fill the remaining vertical whitespace, or will I have to use some old-fashioned window.onresize() handling?

Condor
23 Jul 2009, 5:59 AM
If it should fill the entire viewport you should use an Ext.Viewport and put the tabpanel inside.

If it should only occupy some predefined part of the viewport you could try the FitToParent user extension.