Text
is being drawn from (0,0) position to the right and up. E.g. if you create new Text("Hello")
and ask for it bounds you will see that they have negative vertical coordinates [minX:0.0, minY:-12.94921875]
The reason IMHO is next: Text
is being drawn in Controls and they care more about baseline of the text. Imagine 2 buttons with text "water" and "Water" -- you would really expect them to be aligned by the baseline rather then top-left corner:
relocate()
method from the other side works with a regular Node
s and operates layout which always calculated for top-left corner.