diff options
Diffstat (limited to 'core/js/multiselect.js')
-rw-r--r-- | core/js/multiselect.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/multiselect.js b/core/js/multiselect.js index 03408033db5..2174b74622d 100644 --- a/core/js/multiselect.js +++ b/core/js/multiselect.js @@ -279,7 +279,7 @@ } list.append(list.find('li.creator')); 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() - button.offset().top > (button.offset().top+button.outerHeight() + list.children().length * button.height())) || $(document).height()/2 > button.offset().top ) { |