PDA

View Full Version : Displaying TabPanel with auto height inside a ViewPort



vlads
5 Jun 2011, 5:07 PM
TabPanels that use auto-heighted contents do not display properly if rendered to a ViewPort.

To reproduce - try the standard example in dynamic.html that shows a TabPanel (form 4). Instead of rendering this panel to a document body, render it to a ViewPort. You will see that it's not rendered properly.

I have tracked the problem to using the isViewport flag in the AbtsractContainer in the following lines:

if (Ext.isNumber(owner.height) || owner.isViewport) {
me.managedHeight = false;
}
if (Ext.isNumber(owner.width) || owner.isViewport) {
me.managedWidth = false;

If I change isViewport to false everything works as expected...

Regards
Vladimir

stevil
6 Jun 2011, 11:12 AM
Can you provide a sample?

stevil