NSTableView constraints aren't applying until first window resize

Originator:markd
Number:rdar://27268452 Date Originated:7/10/2016
Status:Open Resolved:
Product:OS X Product Version:10.11.5 (15F34)
Classification:Serious Bug Reproducible:Always
 
Summary:
See attached video - I have two NSTableViews in a window, and the constraints are set such that they have the same top and bottom. The left-hand tableview also has constraints that attach it to the side of the window.

No runtime alerts of badness.  No IB complaints about bad constraints.

When I run, the right-side tableview has the IB positioning, not the constraint positioning.

if I resize the window just one pixel (it's only wafer-thin) then the constraints kick in and everything is sized correctly

Steps to Reproduce:
1. Run the attached pröject


Expected Results:
2. table views are the same size

Actual Results:
2. They're different size until the first resize, then they're where I want them to be.

Version:
Version 8.0 beta 2 (8S162m)
10.11.5 (15F34)


Notes:
Don't know if this is a Cocoa problem, or an Xcode problem setting up the constraints.

Configuration:


Attachments:
'tablesizing.mp4' and 'ClassMaker.zip' were successfully uploaded.

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!