-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
UIScrollView contentOffset reset when going back to Tabman VC #194
Comments
@rnystrom cheers for all the detail, will get it fixed ASAP 👍 |
This seems to be limited to the iPhone X, does not occur on 'regular' devices on iOS 10/11 |
I think layout is occurring because of safe area insets. I saw some weird behavior with Sent with GitHawk |
@rnystrom yeah it looks as though the The actual top inset remains the same, it's the bottom inset that differs. But the |
New Issue Checklist
Issue Description
When navigating back to a Tabman controller, the VC view is being laid out, triggering
viewDidLayoutSubviews
. When Tabman performs its auto insetting, it is recalculating thecontentOffset
and discarding the original y position. This results in the scroll view "jumping" back to the top whenever you navigate back to a VC using Tabman.Other useful things
It's very easy to reproduce in my GitHawk project via:
Here's a stack trace of the operations.
Stack trace
The text was updated successfully, but these errors were encountered: