Make sure x & y are still defined.

Avoids FF issue of tooltip in top left corner if source widget disappears before the timeout fires.
This commit is contained in:
Nathan Gray 2016-01-25 20:04:16 +00:00
parent 369a478733
commit b6b2094643

View File

@ -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