Fixed alignment of language dropdown for textarea
authorAlexander Ebert <ebert@woltlab.com>
Mon, 18 Apr 2016 11:08:49 +0000 (13:08 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 18 Apr 2016 12:03:28 +0000 (14:03 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Ui/Dropdown/Simple.js

index 350014721f226c9b06d15daf07ce39894e17157f..bbd6317e0235a46115d5842355e519e726aa56d9 100644 (file)
@@ -170,7 +170,7 @@ define(
                setAlignment: function(dropdown, dropdownMenu, alternateElement) {
                        // check if button belongs to an i18n textarea
                        var button = elBySel('.dropdownToggle', dropdown), refDimensionsElement;
-                       if (button !== null && button.classList.contains('dropdownCaptionTextarea')) {
+                       if (button !== null && button.parentNode.classList.contains('inputAddonTextarea')) {
                                refDimensionsElement = button;
                        }