Navigation bar height presented from second window doesn't change when moving between compact and standard size
| Originator: | bsuvorov | ||
| Number: | rdar://20167526 | Date Originated: | 15-MAR-2015 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | |
| Classification: | Reproducible: | always |
Summary: See quick demo here: https://github.com/bsuvorov/ios_bug_demos#ios-navigation-bar-height-rotation-bug Apple HID states: "iOS automatically makes various layout changes when the size classes of a display environment change. For example, when the vertical size class changes from compact to regular, navigation bars and toolbars automatically become taller." In attached GIF file you can observe how one navbar changes its height to 32, while another one doesn't change height to 32. Navbar that sticks to 44pt height is part of second window and belongs to UINavigationViewController that is rootViewController for the second window. Interestingly toolbar height does change and works correctly This behavior leads to inconsistent UI layouts and forces devs to remove/add navigation bar as a workaround during rotation handling. Steps to Reproduce: 1. Take sample app from here: https://github.com/bsuvorov/ios_bug_demos/tree/master/iOS8_navigation_bar_height_bug 2. Run it on iOS8 simulator. 3. Rotate simulator. 4. Bug just reproduced Expected Results: Navigation bar presented in second window should change its height when going from standard mode to compact and vice versa. Actual Results: Navigation bar presented in second window sticks to height it was presented with for the first time. if size was standard it'll be 44. if size was compact it'll stay 32. Notes: See quick demo here: https://github.com/bsuvorov/ios_bug_demos#ios-navigation-bar-height-rotation-bug
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Marked as dupe of 16790815, not clear if 16790815 was closed.