From b6b2094643c2ad5f37a04b9f388675363d6d982c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 25 Jan 2016 20:04:16 +0000 Subject: [PATCH] Make sure x & y are still defined. Avoids FF issue of tooltip in top left corner if source widget disappears before the timeout fires. --- phpgwapi/js/jsapi/egw_tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw_tooltip.js b/phpgwapi/js/jsapi/egw_tooltip.js index aadfb2b23e..a9811078c4 100644 --- a/phpgwapi/js/jsapi/egw_tooltip.js +++ b/phpgwapi/js/jsapi/egw_tooltip.js @@ -46,7 +46,7 @@ egw.extend('tooltip', egw.MODULE_WND_LOCAL, function(_app, _wnd) { */ function show() { - if (tooltip_div) + if (tooltip_div && typeof x !== 'undefined' && typeof y !== 'undefined') { //Calculate the cursor_rectangle - this is a space the tooltip might //not overlap with