From eede43df94d3d27922cbb35a63e3164d3624fc99 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 2 Feb 2017 21:10:47 +0100 Subject: [PATCH] Improved fix for main menu overflow in IE 11 --- .../files/js/WoltLabSuite/Core/Ui/Page/Header/Menu.js | 3 +++ wcfsetup/install/files/style/layout/pageHeader.scss | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Menu.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Menu.js index 50061a1e45..6878e26ea4 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Menu.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Menu.js @@ -47,6 +47,9 @@ define(['Ui/Screen'], function(UiScreen) { _enabled = true; this._rebuildVisibility(); + + // IE11 sometimes suffers from a timing issue + window.setTimeout(this._rebuildVisibility.bind(this), 1000); }, /** diff --git a/wcfsetup/install/files/style/layout/pageHeader.scss b/wcfsetup/install/files/style/layout/pageHeader.scss index 5cd36b284d..abfed96f7d 100644 --- a/wcfsetup/install/files/style/layout/pageHeader.scss +++ b/wcfsetup/install/files/style/layout/pageHeader.scss @@ -79,14 +79,10 @@ /* MAIN MENU */ .mainMenu { - flex: 1 1 auto; + flex: 1; margin-right: 20px; position: relative; - @include screen-lg { - overflow: hidden; - } - .boxMenu { display: flex; overflow: hidden; -- 2.20.1