Canvas tooltips: respect position from node
Previous (faulty) behavior was to always set x and y to 1 when non-nil
This commit is contained in:
parent
12469f2966
commit
e61faa738b
1 changed files with 2 additions and 2 deletions
|
@ -248,12 +248,12 @@ var Tooltip = {
|
|||
|
||||
showMessage: func(timeout = nil, node = nil)
|
||||
{
|
||||
if(var y = me._haveNode(node, 'y') != nil ) {
|
||||
if((var y = me._haveNode(node, 'y')) != nil ) {
|
||||
me.setInt("y", y);
|
||||
} else {
|
||||
me.setInt("y", getprop('/sim/startup/ysize') * 0.2);
|
||||
}
|
||||
if(var x = me._haveNode(node, 'x') != nil) {
|
||||
if((var x = me._haveNode(node, 'x')) != nil) {
|
||||
me.setInt("x", x);
|
||||
} else {
|
||||
var screenW = getprop('/sim/startup/xsize');
|
||||
|
|
Loading…
Reference in a new issue