1
0
Fork 0

Bug 1273, message popups hide timeout ignored.

Stop the tooltip code from prematurely hiding message popups.

https://code.google.com/p/flightgear-bugs/issues/detail?id=1273
This commit is contained in:
James Turner 2013-12-09 22:02:06 +00:00
parent fee546b0f3
commit 163b8ca6d8

View file

@ -223,6 +223,11 @@ var Tooltip = {
var screenW = getprop('/sim/startup/xsize'); var screenW = getprop('/sim/startup/xsize');
me.setInt("x", (screenW - me._width) * 0.5); me.setInt("x", (screenW - me._width) * 0.5);
me.show(); me.show();
# https://code.google.com/p/flightgear-bugs/issues/detail?id=1273
# when tooltip is shown for some other reason, ensure it stays for
# the full delay (unless replaced). Don't allow the update-hover
# code path to hide() with the shorter delay.
me._hiding = 1;
me._hideTimer.restart(timeout or me.DELAY); me._hideTimer.restart(timeout or me.DELAY);
}, },