From 3425a598e12ace681fa65bf6c67da19399b35cab Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 1 Oct 2016 11:13:41 +0200 Subject: [PATCH] Fixed overflow marker not present on init --- .../files/js/WoltLabSuite/Core/Ui/TabMenu.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js index 59704c5d04..347c4322f1 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js @@ -132,11 +132,15 @@ define(['Dictionary', 'EventHandler', 'Dom/ChangeListener', 'Dom/Util', 'Ui/Clos _scrollEnable: function (isSetup) { _enableTabScroll = true; - if (!isSetup) { - _tabMenus.forEach((function (tabMenu) { - this.scrollToTab(tabMenu.getActiveTab()); - }).bind(this)); - } + _tabMenus.forEach((function (tabMenu) { + var activeTab = tabMenu.getActiveTab(); + if (isSetup) { + this._rebuildMenuOverflow(activeTab.closest('.menu, .tabMenu')); + } + else { + this.scrollToTab(activeTab); + } + }).bind(this)); }, _scrollDisable: function () { -- 2.20.1