Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Width of text node with word wrapping not correct when text is smaller than word wrapping width #455

Open
michielvandergeest opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@michielvandergeest
Copy link
Contributor

There seems to be a bug (or at least an unexpected result from a developer perspective), when creating a text node with "word wrapping" applied to it (i.e. a width property and contain property set to both).

When the text content is larger than the width property, everything works as expected. But whenever the text content is smaller than the desired word wrapping width, the final width of the texture reported in the text loaded event is not the actual text width, but equals the value of the supplied width).

From a developer perspective, one would expect that the width property is interpreted as a max width, and the returned width to be actual width of the final texture.

@wouterlucas wouterlucas added the bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants