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:
parent
fee546b0f3
commit
163b8ca6d8
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue