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 Button clipping when internal margins exist #79455

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

timothyqiu
Copy link
Member

@timothyqiu timothyqiu commented Jul 14, 2023

Button text clipping width did not take internal margins into account.

BeforeAfter
CheckBoxes
w/ & w/o ellipses

demo-before

demo-after

Inspector Flags

inspector-before

inspector-after

The two ifs in the current code updates clip width after the width is used, thus the problem.

Closes #78868

@timothyqiu timothyqiu added bug topic:gui cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release labels Jul 14, 2023
@timothyqiu timothyqiu added this to the 4.2 milestone Jul 14, 2023
@timothyqiu timothyqiu requested a review from a team as a code owner July 14, 2023 06:11
@YuriSizov YuriSizov merged commit 7b0f8d7 into godotengine:master Jul 14, 2023
@YuriSizov
Copy link
Contributor

Thanks!

@timothyqiu timothyqiu deleted the button-clip-internal branch July 15, 2023 02:25
@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Aug 31, 2023
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.2.

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

Successfully merging this pull request may close these issues.

Justification flags properties of Label overriding the Scrollbar
3 participants