forked from qt/qtbase
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAYA-131609: Tabs go missing when changing direction
With commit 1082038 from Qt R&D, we were still able to reproduce the missing tabs issue when a tab was removed with tab bar scrolled to the right. While I understand that the problem arose because the geometry was not ready when the API was called, I believe the scroll offset calculation could be rewritten to handle various scenarios, regardless of how and when this API is used. My change reorders the existing logic and achieves the following: Resets the scroll offset if there is enough space to fully display the tab bar before checking other conditions. If there is not enough space, it clamps the adjusted scrollOffset value within the limits. I have added a test case to demonstrate the issue we observed with the original commit.
- Loading branch information
Showing
2 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters