Text alignment doesn't work #1561
-
Expected result: text is aligner to the left, adding more characters doesn't move text Actual result: when mouse is 100 pix or more outside screen, text is shifting Note: steps above can be modified, bug appears with any kind of text 2023-12-30.23.23.12.mov |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
use |
Beta Was this translation helpful? Give feedback.
-
@Nordsoft91 As @DelinWorks pointed out, to correctly align text, the label would need to have fixed dimensions. The reason it's moving in your example is simply because the dimensions of the box change as the string contents are updated, and given it's set to anchor point of If you have no other concerns related to this, then please close this issue. |
Beta Was this translation helpful? Give feedback.
-
thanks, with anchor (0, 1) works as naturally expected |
Beta Was this translation helpful? Give feedback.
@Nordsoft91 As @DelinWorks pointed out, to correctly align text, the label would need to have fixed dimensions. The reason it's moving in your example is simply because the dimensions of the box change as the string contents are updated, and given it's set to anchor point of
Vec2::ANCHOR_MIDDLE
by default, you can see how that would affect the left alignment of text.If you have no other concerns related to this, then please close this issue.