From a6867d9007c17261c25b6d1cc601b22508be207f Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 12 Oct 2013 15:24:19 +0200 Subject: [PATCH] Adds scrollableDropdownMenu support for label choosers --- wcfsetup/install/files/js/WCF.Label.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.Label.js b/wcfsetup/install/files/js/WCF.Label.js index d02625f96e..a9ef8b8ac1 100644 --- a/wcfsetup/install/files/js/WCF.Label.js +++ b/wcfsetup/install/files/js/WCF.Label.js @@ -184,20 +184,26 @@ WCF.Label.Chooser = Class.extend({ $dropdownMenu = WCF.Dropdown.getDropdownMenu($containerID); } + var $additionalList = $dropdownMenu; + if ($dropdownMenu.getTagName() == 'div' && $dropdownMenu.children('.scrollableDropdownMenu').length) { + $additionalList = $('