Skip to content

tab bar: Take scroll position into account when making item visible#513

Merged
uwerat merged 1 commit intouwerat:masterfrom
edelhirsch:bugfix/tab-bar-scroll-pos
May 4, 2025
Merged

tab bar: Take scroll position into account when making item visible#513
uwerat merged 1 commit intouwerat:masterfrom
edelhirsch:bugfix/tab-bar-scroll-pos

Conversation

@peter-ha
Copy link
Collaborator

@peter-ha peter-ha commented May 2, 2025

If the tab bar is scrolled, the position we get from calling mapFromItem() is less than the real position with a scrolling of 0, because mapFromItem() does not know about our scroll position.

This is usually not noticed when creating a tab bar, because the scroll position is (0,0). When calling this method on a scrolled tab bar, the problem becomes visible.

If the tab bar is scrolled, the position we get from calling
mapFromItem() is less than the real position with a scrolling of 0,
because mapFromItem() does not know about our scroll position.

This is usually not noticed when creating a tab bar, because the
scroll position is (0,0). When calling this method on a scrolled
tab bar, the problem becomes visible.
@uwerat uwerat merged commit cf8a45f into uwerat:master May 4, 2025
9 of 13 checks passed
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.

2 participants