From 77085e323cde0a8c13c7989792ec8bd08c390382 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 20 Jun 2019 17:43:02 +0200 Subject: [PATCH] Fix alignment of dropdowns in scrollable dialogs --- .../install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.20.1