From bc96384e076c85529cd2f8f39b782870a5c66e1b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 2 Nov 2012 00:34:16 +0100 Subject: [PATCH] Adjusts the height of multilingual input fields This way, button and input field have the same height which looks way better than if the input field isn't high enough. --- wcfsetup/install/files/js/WCF.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 7cb00fdef9..ab78fe2351 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2315,8 +2315,7 @@ WCF.Language = { * @param object values * @param object availableLanguages */ -WCF.MultipleLanguageInput = function(elementID, forceSelection, values, availableLanguages) { this.init(elementID, forceSelection, values, availableLanguages); }; -WCF.MultipleLanguageInput.prototype = { +WCF.MultipleLanguageInput = Class.extend({ /** * list of available languages * @var object @@ -2426,6 +2425,7 @@ WCF.MultipleLanguageInput.prototype = { } else { $button.addClass('dropdownCaption'); + $button.next().css('height', $button.outerHeight()); } // insert list @@ -2627,7 +2627,7 @@ WCF.MultipleLanguageInput.prototype = { // remove name attribute to prevent conflict with i18n values this._element.removeAttr('name'); } -}; +}); /** * Icon collection used across all JavaScript classes. -- 2.20.1