I have a component that changes its location based on other elements. I'm trying to find its x and y position at different intervals, so I tried compname.x
and compname.y
.
The x
position seems to be working, but the y
position is always 0. I'm guessing I need to play with localToGlobal
or contentToGlobal
or one of those conversions. Is that the problem?