Place task actions menu above link if at the bottom of the window (#2601)

This commit is contained in:
Thomas Bruederli 2014-05-06 08:39:28 +02:00
parent e625711a85
commit 23d5227462

View file

@ -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;