summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/js/multiselect.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/multiselect.js b/core/js/multiselect.js
index 9e808a2bb72..d66c8eba625 100644
--- a/core/js/multiselect.js
+++ b/core/js/multiselect.js
@@ -238,7 +238,9 @@
list.append(li);
}
var pos=button.position();
- if($(document).height() > button.offset().top+button.outerHeight() + list.children().length * button.height()) {
+ if($(document).height() > (button.offset().top+button.outerHeight() + list.children().length * button.height())
+ || $(document).height()/2 > pos.top
+ ) {
list.css('top',pos.top+button.outerHeight()-5);
list.css('left',pos.left+3);
list.css('width',(button.outerWidth()-2)+'px');