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 tab offset moving when not needed #97209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kitbdev
Copy link
Contributor

@kitbdev kitbdev commented Sep 19, 2024

It was caused by the call to set_anchors_and_offsets_preset(PRESET_TOP_WIDE); since it reset the left and right offsets and then the TabBar resizes and changes the tab offset to fit. The offsets were fixed after, but the tab offset was already changed. The call to _update_margins is no longer needed.

I made sure that the anchors and offsets are the same as before:
tabs_position: top
anchors: top 0, bot 0, left 0, right 1
offsets: top 0, bot 31, left 8, right 0
tabs_position: bottom
anchors: top 1, bot 1, left 0, right 1
offsets: top -31, bot 0, left 8, right 0

@kitbdev kitbdev requested a review from a team as a code owner September 19, 2024 23:28
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.

TabContainer tabs move on select, but TabBar tabs do not [Regression]
1 participant