You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description: Aligning a Label "center" or "right" does not account for leading or trailing spaces. This was the cause of a long troubleshooting session on Discord. In the MRP posted, there are 3 nodes that show incorrect behavior.
Label1 has leading spaces and is set to align right, and its text is pushed outside of the box by the spaces because the alignment setting does not account for the leading spaces.
Label2 is a copy of Label1 except that there is a letter added in front of the spaces, which causes them to be counted and the text displays properly.
Label3 has trailing spaces and is set to align center. The text is in the middle, since it does not account for the spaces, but the text should actually be pushed to the left.
Steps to reproduce: Open the MRP, click on the boxes, observe that the behavior is wrong in many ways.
Godot version: Occurs in 3.2 and master
OS/device including version: Ubuntu 20.04
Issue description: Aligning a Label "center" or "right" does not account for leading or trailing spaces. This was the cause of a long troubleshooting session on Discord. In the MRP posted, there are 3 nodes that show incorrect behavior.
Label1 has leading spaces and is set to align right, and its text is pushed outside of the box by the spaces because the alignment setting does not account for the leading spaces.
Label2 is a copy of Label1 except that there is a letter added in front of the spaces, which causes them to be counted and the text displays properly.
Label3 has trailing spaces and is set to align center. The text is in the middle, since it does not account for the spaces, but the text should actually be pushed to the left.
Steps to reproduce: Open the MRP, click on the boxes, observe that the behavior is wrong in many ways.
Minimal reproduction project: labels-are-broken.zip
The text was updated successfully, but these errors were encountered: