UIStackView broken with Size Class (doesn't react to screen rotation)
| Originator: | saidi-farid | ||
| Number: | rdar://23255118 | Date Originated: | 26-Oct-2015 06:46 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 9 |
| Classification: | 1 - High | Reproducible: | Always |
Summary: Some options (especially the Axis one) on UISTackView don't react to Size Class options, especially when rotating the screen (in the code, it does get the correct settings, but it doesn't reflect on screen). Steps to Reproduce: 1) Create few stack views with even simple elements inside (one label and one textfield for example). 2) Set their axis to vertical, and add a Size Class (Any, C.h) and set the Axis to Horizontal 3) Look at the preview pane, everything looks correct for Landscape and Portrait settings 4) Build and run (both simulator or device) Expected Results: All the stack views should be horizontal on compact heigh (landscape) and vertical otherwise Actual Results: Odd stack views behave correctly while even stack views dont Version: Xcode 7.1, iOS9 simulators and device Notes: If checked in code, the parameters appear correct, it's just the rendering on screen that seems broken. Configuration: iMac Retina on OSX 10.11.1, iPhone 5s on iOS 9.0.2 Attachments: 'StackViewBug.zip' was successfully uploaded. #Open Radar: Attached project is a simple one vertical UIStackView that contains 5x UIStackViews, all set to vertical + a SizeClass (Any W,C. H) to horizontal, fill equally, and each containing a label and textfiled.
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!