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
bugFix: two gray line appear when device rotate from horizontal regular to horizontal compact #14
Conversation
…ar to horizontal compact bug reproduce: 1. let device in horizontal regular state; 2. search some key(ps. has search results); 3. rotate device to horizontal compact state; then appear two gray line.
I still get a gray line with your fix: I've seen these bugs in all iOS apps I've tried when rotating between portait/landscape or landscape/portrait, including Apple apps. The gray lines aren't the only issue, the whole search results table view seems to reposition. Maybe we should fix it by ending the search and redoing it on rotation? |
…ar to horizontal compact bugFix: two gray line appear when device rotate from horizontal regular to horizontal compact
@Kapeli I updated the code, this time, I don`t remove top gray line, just adjust tableView insets. |
…ar to horizontal compact bugFix: two gray line appear when device rotate from horizontal regular to horizontal compact
This fixes the tableview part of the bug, but the searchbar doesn't reposition properly, so you still get something like this when switching from landscape to portrait: Deactivating & reactivating the search controller seems to fix all bugs, but it's ugly as it loses scroll position and redoes the search: ee49a6e. I don't really like it. I'll try to expand on your fix and get the searchbar to reposition properly. |
@Kapeli , yeah, I agree with you, deactivating & reactivating seems not user friendly. If wants to position searchBar under statusBar, I think we can add code |
Found these radars regarding this issue: https://openradar.appspot.com/21743785 and https://openradar.appspot.com/352525 |
reproduce step: 1. go into download docsets interface. 2. let searchBar into active state. 3. rotate device from horizontal regular to horizontal compact or vice versa.
This reverts commit 592628b.
…ar to horizontal compact bugFix: two gray line appear when device rotate from horizontal regular to horizontal compact
@Kapeli , I changes the statusBar color by set I also fix the docset download interface bug(reproduce step: in download interface,click searchBar,rotate,input some search key). screenshot below: |
I think this is going to extreme lengths to partially fix a bug that's on Apple's end. I'd much rather leave things as is and have the bug present like every other app on iOS. I'm afraid we'll introduce a bunch of other bugs trying to fix this one. |
Yep, I'll close the pull request. |
bug reproduce: