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

fix(LWW): wrap+ellipsize+lines => min_w > nat_w #778

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

GeopJr
Copy link
Owner

@GeopJr GeopJr commented Feb 7, 2024

fix: #775 #719

another banger

image

another banger by gtklabel


wrap + ellipsize + lines can sometimes cause the minimum width to be > than the natural one causing the effect found in the linked issues. Setting width-chars to anything but < 1 will skip the measuring 🤷

For ellipsizing labels, if either is specified (and less than the actual text size), it is used as the minimum width, and the actual text size is used as the natural width of the label. For wrapping labels, width-chars is used as the minimum width, if specified, and max-width-chars is used as the natural width. Even if max-width-chars specified, wrapping labels will be rewrapped to use all of the available width.

@GeopJr GeopJr merged commit 370817c into main Feb 7, 2024
6 checks passed
@GeopJr GeopJr deleted the fix/lww/wrap-ellipsize-lines-minw-natw branch February 7, 2024 10:46
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

Successfully merging this pull request may close these issues.

[Bug]: Tuba displays text out of bounds
1 participant