From e5996336e68697473afce7e6bf734b3fbad61365 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 18 Dec 2015 13:14:09 +0000 Subject: [PATCH] * Mail: Fix compose dialog goes under window's taskbar and attahcments are not visible --- phpgwapi/js/jsapi/egw_open.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw_open.js b/phpgwapi/js/jsapi/egw_open.js index 04a6b1b233..4ff0ecf70a 100644 --- a/phpgwapi/js/jsapi/egw_open.js +++ b/phpgwapi/js/jsapi/egw_open.js @@ -435,7 +435,9 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd) */ availHeight: function() { - return screen.availHeight < screen.height ? screen.availHeight : screen.height - 100; + return screen.availHeight < screen.height ? + (navigator.userAgent.match(/windows/ig)? screen.availHeight -100:screen.availHeight) // Seems chrome not counting taskbar in available height + : screen.height - 100; }, /**