From d9b93ec84bf1470d5a5311653bae56582f82164b Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Wed, 28 Mar 2012 16:09:14 +0300 Subject: [PATCH] Remove first tab overflow button creation. At creation of Tabs component the overflow button creation was triggered twice - first by afterrender, then by resize. Removed the first as having it twice caused a crash in Ext JS 4.1. --- template/app/view/Tabs.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/template/app/view/Tabs.js b/template/app/view/Tabs.js index 987df94e..c410430b 100644 --- a/template/app/view/Tabs.js +++ b/template/app/view/Tabs.js @@ -133,8 +133,6 @@ Ext.define('Docs.view.Tabs', { this.resizeTabs({animate: true}); } }, this); - - this.createOverflowButton(); }, /** @@ -200,7 +198,7 @@ Ext.define('Docs.view.Tabs', { // Remove the tab both from tab-bar and all-tabs array this.removeFromArray(this.tabs, url); var removedIndex = this.removeFromArray(this.tabsInBar, url); - + // An empty space in tab-bar has now become available // If the all-tabs array has an item to fill this spot, // add the item from all-tabs array to tab-bar. -- GitLab