Closed LeHaine closed 1 year ago
If the scene is already initialized and a new control node is added, that node is not measured resulting it having a width & height of zero.
Current work around includes setting an anchor tag to a new value and the back to invoke the measuring.
anchor
label { text = "test" onUpdate += { if (width == 0 && height == 0) { anchorRight = 0f anchorRight = 1f } } }.addTo(myOtherNode)
If the scene is already initialized and a new control node is added, that node is not measured resulting it having a width & height of zero.
Current work around includes setting an
anchor
tag to a new value and the back to invoke the measuring.