plugins/tasklist

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


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

New commits:
commit 23d5227462a1576137fce09ff443b713655693f4
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 4e8cacf..fcf4306 100644
--- a/plugins/tasklist/tasklist.js
+++ b/plugins/tasklist/tasklist.js
@@ -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;




More information about the commits mailing list