From 114bb1123eb27225e3be992b00483f518f8e00c4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 30 May 2013 20:31:08 +0200 Subject: [PATCH] Fixed dropdown visibility and alignment --- wcfsetup/install/files/js/WCF.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 9809f956f2..4ae33d8159 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -944,7 +944,7 @@ WCF.Dropdown = { else { dropdownMenu.addClass('dropdownArrowRight'); - $right = $dropdownOffsets.left + $dropdownDimensions.width + 'px'; + $right = ($windowWidth - ($dropdownOffsets.left + $dropdownDimensions.width)) + 'px'; } dropdownMenu.css({ @@ -5439,6 +5439,10 @@ WCF.Search.Base = Class.extend({ WCF.CloseOverlayHandler.addCallback('WCF.Search.Base', $.proxy(function() { this._clearList(); }, this)); + if (!this._list.is(':visible')) { + WCF.Dropdown.toggleDropdown(this._searchInput.parents('.dropdown').wcfIdentify()); + } + // pre-select first item this._itemIndex = -1; this._selectNextItem(); -- 2.20.1