Place task actions menu above link if at the bottom of the window (#2601)
This commit is contained in:
parent
e625711a85
commit
23d5227462
1 changed files with 1 additions and 1 deletions
|
@ -312,8 +312,8 @@ function rcube_tasklist_ui(settings)
|
|||
}
|
||||
else {
|
||||
pos = ref.offset();
|
||||
pos.top += ref.outerHeight();
|
||||
pos.left += ref.width() - menu.outerWidth();
|
||||
pos.top += (pos.top + ref.outerHeight() + menu.height() > $(window).height() ? -menu.height() : ref.outerHeight());
|
||||
menu.css({ top:pos.top+'px', left:pos.left+'px' }).show();
|
||||
menu.data('refid', id);
|
||||
me.selected_task = rec;
|
||||
|
|
Loading…
Add table
Reference in a new issue