-
30 Sep 2010 9:41 AM #1
[OPEN-1302] Ext.TabPanel does not check return status of CardLayout.setActiveItem
[OPEN-1302] Ext.TabPanel does not check return status of CardLayout.setActiveItem
Ext version tested:
- Ext 3.2 rev 1
- ext
- only default ext-all.css
- IE8
- Windows Vista Ultimate
- Ext.TabPanel.setActiveTab calls CardLayout.setActiveItem but does not check the return value. CardLayout.setActiveItem can return false if the active Panel could not be hidden. TabPanel therefore permits changing tabs when CardLayout has not changed the active item.
Steps to reproduce the problem:Code:Ext.onReady(function() { new Ext.Viewport({ items:[{ xtype:'tabpanel', activeTab:0, items:[{ html:'<h1>Tab1 HTML contents</h1>', title:'Tab1', listeners:{ beforehide:function() { return false; } } },{ html:'<h1>Tab2 HTML contents</h1>', title:'Tab2' }] }], layout:'fit' }); });- Run code example
- Click Tab2
- Observe that the tab change is allowed but Tab1's contents are still displayed
- Tab should not be allowed to change
- Tab is allowed to change
- Check return value of this.layout.setActiveItem(item); in TabPanel.setActiveTab
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
CardLayout and setActiveItem
By jmtulloss in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 28 Mar 2012, 10:44 PM -
CardLayout.setActiveItem not working
By dVyper in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 8 Dec 2008, 1:32 AM -
DelayedTask needs isPendingTask status check
By kalebwalton in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 13 Jul 2007, 7:17 AM


Reply With Quote