-
Notifications
You must be signed in to change notification settings - Fork 43
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
I am facing an issue in ios 11. When I open a header with multiple cells and closing it, the whole tableview shifts down. Any idea why its happening? #46
Comments
I would need a lot more information to diagnose any issues. Is it only iOS 11? It works in iOS 10? Could you post a video? Maybe any specific code that you think might be unusual too. |
@kgaidis |
Thank you for the video and explanation. I can replicate the issue and it's not necessarily related to the header view. The problem seems to be an iOS bug - as you said, it doesn't happen on iOS 10. When you expand a section, the table view content size increases. When you collapse a section, the table view content size decreases. This will probably only happen in scenarios where the tableview is not too large and not too small. Here is a possible temporary fix but its not perfect because there is a little bit of a lag on scrolling:
A more perfect solution would possibly be to listen to All these solutions are doable without messing with the interals of I may or may not be able to get a fix in by the end of the week, but not guaranteed. Note: Good test case is 19 sections, 7 rows. |
@kgaidis |
For anyone coming into this ticket with the same problem, I'd just use the fix below for now. It's not perfect, but it mostly gets the job done.
I tried overriding |
No description provided.
The text was updated successfully, but these errors were encountered: