Merge pull request #1738 from owncloud/fix_multiselect_in_settings
Extra position check for multiselect dropdown. Fix app/issues/575
This commit is contained in:
commit
18dab4a88e
|
@ -266,8 +266,9 @@
|
||||||
}
|
}
|
||||||
list.append(list.find('li.creator'));
|
list.append(list.find('li.creator'));
|
||||||
var pos=button.position();
|
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
|
&& $(document).height() - button.offset().top > (button.offset().top+button.outerHeight() + list.children().length * button.height()))
|
||||||
|
|| $(document).height()/2 > button.offset().top
|
||||||
) {
|
) {
|
||||||
list.css({
|
list.css({
|
||||||
top:pos.top+button.outerHeight()-5,
|
top:pos.top+button.outerHeight()-5,
|
||||||
|
|
Loading…
Reference in New Issue