getPosition function
-
We have
setPositionbut it would be useful sometimes to be able to get the position of a component. I can see that there is already agetPositionfunction defined in the source which returns a rectangle type, but I can't figure out how to wrap that into a script function. -
@David-Healey wouldn't
.get('x')and.get('y')be enough? -
@daniloprates that's the current method but that's 4 function calls each time i want the position of a control.
-
@David-Healey I have an
Utils.jsfile where I create abstractions for every tedious thing like this, but a native function would be useful indeed