summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-05-06 06:39:28 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-05-06 06:40:20 (GMT)
commit596534b32b82b3f59456c32643e872d5c24f3b7c (patch)
tree420a51250fe01eecf03c5f9c0229df99214f2aa5
parent5be7b5bb93ab30b22d7537c42cc18e4acebd7906 (diff)
downloadroundcubemail-plugins-kolab-596534b32b82b3f59456c32643e872d5c24f3b7c.tar.gz
Place task actions menu above link if at the bottom of the window (#2601)roundcubemail-plugins-kolab-3.1.14
-rw-r--r--plugins/tasklist/tasklist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/tasklist/tasklist.js b/plugins/tasklist/tasklist.js
index 0b0a561..e9429e2 100644
--- a/plugins/tasklist/tasklist.js
+++ b/plugins/tasklist/tasklist.js
@@ -308,8 +308,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;