From ca155b1c1ca8824a51e22cfede6812c9de7b3295 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 27 May 2013 18:35:40 +0200 Subject: [PATCH] Fixed dropdown menu position for i18n textareas --- wcfsetup/install/files/js/WCF.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 9d59a9f36d..4a2a125e1e 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -898,6 +898,13 @@ WCF.Dropdown = { var $menuDimensions = dropdownMenu.getDimensions('outer'); var $windowWidth = $(window).width(); + // check if button belongs to an i18n textarea + var $button = dropdown.find('.dropdownToggle'); + if ($button.hasClass('dropdownCaptionTextarea')) { + // use button dimensions instead + $dropdownDimensions = $button.getDimensions('outer'); + } + // validate if current alignment is still fine, prevents "jumping" var $align = null; switch (dropdownMenu.data('orientationX')) { -- 2.20.1