Branch 'roundcubemail-plugins-kolab-3.1' - plugins/tasklist

Thomas Brüderli bruederli at kolabsys.com
Tue May 6 08:40:31 CEST 2014


 plugins/tasklist/tasklist.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 596534b32b82b3f59456c32643e872d5c24f3b7c
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Tue May 6 08:39:28 2014 +0200

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

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;




More information about the commits mailing list