From: Matthias Schmidt Date: Thu, 20 Jun 2019 15:43:02 +0000 (+0200) Subject: Fix alignment of dropdowns in scrollable dialogs X-Git-Tag: 5.2.0_Alpha_1~19^2~1^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77085e323cde0a8c13c7989792ec8bd08c390382;p=GitHub%2FWoltLab%2FWCF.git Fix alignment of dropdowns in scrollable dialogs --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js index b2331016ad..a6bd4807aa 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js @@ -330,7 +330,7 @@ define( this.toggleDropdown(containerId); } else { - this.setAlignment(containerId, _menus.get(containerId)); + this.setAlignment(_dropdowns.get(containerId), _menus.get(containerId)); } } }, @@ -408,7 +408,7 @@ define( } // check if 'isOverlayDropdownButton' is set which indicates that the dropdown toggle is within an overlay - if (elData(dropdown, 'is-overlay-dropdown-button') === null) { + if (elData(dropdown, 'is-overlay-dropdown-button') === '') { var dialogContent = DomTraverse.parentByClass(dropdown, 'dialogContent'); elData(dropdown, 'is-overlay-dropdown-button', (dialogContent !== null));