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 TabContainer using wrong content rect after tab title update #91038

Merged

Conversation

timothyqiu
Copy link
Member

@timothyqiu timothyqiu commented Apr 23, 2024

Continuation of #90942.

This PR fixes a bug that only happens when you update tab title after updating tab icon. Updating tab icon before updating tab title is fine. 3.x does not have this bug.

Tab title can affect minimum size even when clipping tabs (e.g. changing from using empty title to some visible text).

Before After
before after

The magenta rect is the tab content.

Test project: tab-container.zip

@timothyqiu timothyqiu added bug topic:gui cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Apr 23, 2024
@timothyqiu timothyqiu added this to the 4.3 milestone Apr 23, 2024
@timothyqiu timothyqiu requested a review from a team as a code owner April 23, 2024 01:59
@akien-mga akien-mga merged commit d7abefd into godotengine:master Apr 23, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the tab-container-toggle-icon-text branch April 23, 2024 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release topic:gui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants