NSSplitViewController contents are shifted at first
NSSplitViewController contents are shifted at first
- Subject: NSSplitViewController contents are shifted at first
- From: Rick Mann <email@hidden>
- Date: Fri, 20 May 2016 00:00:14 -0700
I have a Storyboard using autolayout constraints. I have an NSWindowController with an NSSplitViewController as its content view controller. That has two sub controllers. The left one has an NSOutlineView that has top,left,right, and bottom constraints to its containing view, and a width >= 200. The contents come via bindings. The right controller has no views, just the main view.
When the window is first displayed, You can see the two panes, but you can't see the contents of the left pane. If you resize the window vertically a bit, then they snap into position. You can also see that at first, the dot in the middle of the split view slider is not actually in the middle. Once you resize the window a bit, it snaps into the center.
IB doesn't let me set any other constraints on things. I don't know how the various nested view controllers set up the constraints on their views.
Am I missing something? Thanks.
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden