-
23 Feb 2011 6:47 AM #1
[CLOSED]Tab Panel: Layout Bug
[CLOSED]Tab Panel: Layout Bug
When adding a tab to a tabpanel via add, the content is rendered over the tabs as shown below:
sample1.jpg.
Here is what I've been able to deduce:
- This does not occur if the tab is added in the initial config
- Clicking on a new tab in the inner tabpanel cause the layout to correct itself
- This will also happen if the tab is of type "panel" as long as it continues to contain sub-items
Code:Ext.onReady(function() { var panel = new Ext.create ( 'Ext.tab.TabPanel', { region: 'center', renderTo: Ext.getBody(), width: 600, height: 350 }); var t = Ext.create ( 'Ext.tab.TabPanel', { title: 'Test 1', items: [{ title: 'Test 2', flex: 1 }, { title: 'Test 3', flex: 1 }] }); panel.add (t); panel.setActiveTab (t);
-
23 Feb 2011 4:02 PM #2
A TabPanel must use a card layout, it's assumed in various places throughout the code.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
23 Feb 2011 4:44 PM #3
Actually the hbox was a leftover from testing it with a panel. It fails without the hbox and with a panel instead of a tab panel for the inner item.
This will also happen if the tab is of type "panel" as long as it continues to contain sub-items
-
23 Feb 2011 5:41 PM #4
In this case it looks as though it's since been resolved. Should see it in the next release.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[CLOSED]removeAll from a panel with a table layout
By rspaeth in forum Ext 3.x: BugsReplies: 3Last Post: 28 Jun 2010, 1:07 AM -
[OPEN] [CLOSED][3.0RC2] scrollbars on panel cover panel contents with anchor layout
By campersau1 in forum Ext 3.x: BugsReplies: 1Last Post: 30 Jun 2009, 2:27 PM -
[2.2][CLOSED] Removing panel from Accordion layout leaves undead panel html in dom
By ogradyjd in forum Ext 2.x: BugsReplies: 6Last Post: 4 Mar 2009, 11:31 AM -
[2.2][CLOSED] Re-collapse right panel / grid layout
By Gunmen in forum Ext 2.x: BugsReplies: 1Last Post: 21 Aug 2008, 10:05 PM -
How to detect if a Border Layout Panel is open or closed?
By johnnycannuk in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 3 Jul 2007, 7:21 AM


Reply With Quote