UIStackView calculates really wrong height value
| Originator: | hotngui | ||
| Number: | rdar://28151124 | Date Originated: | 9/3/2016 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 7.3.1 (8 beta 6) |
| Classification: | Serious Bug | Reproducible: | Yes |
Summary: If you add a couple of UILabel instances into a vertically oriented UIStackView IB calculates the wrong value for the height of it - which in turns leads to warnings that cannot be cleared and more importantly makes it impossible to properly layout the rest of the scene. Steps to Reproduce: 1. Uncompress that attached file 2. Open the "Main.storyboard" 3. Observe the warnings and improper layout of the UIStackView instances in both scenes (UIViewController, UITableViewController) Expected Results: I expect the layout to be calculated correctly on the screen, so I can continue the layout of the rest of my scene. Actual Results: According to the warning messages the UIStackView wants to have a huge height >400 even though there are are two small UILabel instances contained within the UIStackView instances. Version: Xcode 7.3.1 Xcode 8 Beta 6
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!