PDA

View Full Version : [OPEN-1357] Weird tabpanel behaviour



rkaat
22 Oct 2010, 3:21 AM
Hey,

I was working with the TabPanel component recently and discovered some strange behaviour. Maybe I am doing something wrong, or it could be a bug.

Here is the code the reproduce the problem:


Ext.onReady(function(){
var tabs = new Ext.TabPanel({
renderTo: Ext.getBody(),
activeTab: 0,
items: [{
title : 'Tab 1',
height : 100
},{
title : 'Tab 2',
height : 100,
closable : true
}]
});
});
The steps to reproduce the problem are:
- Go to tab 2
- Close tab 2
- Tab 1 gets active but the height changed to 200pixel, instead of the 100 it should be. It added the height of the closed tab to the tab that is set to active.

Is this normal, or could this be a bug ??

wavedan
22 Oct 2010, 3:25 AM
Do you have a link to the site where this is? What is your version of extJS?

Condor
22 Oct 2010, 3:27 AM
Confirmed on Ext 3.3+ (all browsers).

Moving to Bugs.