Defer the overflow handling for the main menu
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Jan 2022 15:51:50 +0000 (16:51 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Jan 2022 15:51:50 +0000 (16:51 +0100)
commita1051d7bcf162e26581a9e2c06fcc44e9aa41483
tree775ffda43e01d2aa65a9dc6b985eeb020261ce42
parent96e9512a5c04d5fb0b90126b2037ede0d6afb689
Defer the overflow handling for the main menu

The previous code would inject the overflow handles immediately if the `screen-lg` environment matches. However, depending on the time it took this could have caused a forced reflow because the width of the menu was considered to be stale following the injection of the elements.
ts/WoltLabSuite/Core/Ui/Page/Header/Menu.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Header/Menu.js