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

Text overflow calculation not correct #513

Open
michielvandergeest opened this issue Feb 5, 2025 · 0 comments
Open

Text overflow calculation not correct #513

michielvandergeest opened this issue Feb 5, 2025 · 0 comments
Assignees

Comments

@michielvandergeest
Copy link
Contributor

It seems the calculation of when to apply text overflow (i.e. adding ellipsis) is slightly off.

See the following Blits playground example:https://playground.lightningjs.io/#4VfPB4vxpOLU

The text technically fits inside of the 270px max width, but still get's cut off. If the max width is increased with 2 pixels, the text is not truncated, and the reported text width is still below 270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants