diff --git a/apps/spreadsheeteditor/main/app/controller/Statusbar.js b/apps/spreadsheeteditor/main/app/controller/Statusbar.js index 06d67650c..b88aee8a8 100644 --- a/apps/spreadsheeteditor/main/app/controller/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Statusbar.js @@ -325,6 +325,10 @@ define([ } else { this.api['asc_showWorksheet'](index); this.loadTabColor(index); + var me = this; + setTimeout(function(){ + me.statusbar.tabMenu.hide(); + }, 1); } }, @@ -630,10 +634,7 @@ define([ }, onApiActiveSheetChanged: function (index) { - var me = this; - setTimeout(function() { - me.statusbar.tabMenu.hide(); - }, 10); + this.statusbar.tabMenu.hide(); }, zoomText : 'Zoom {0}%',