> > In fact, with NSStackView you should just be able to set the content hugging > priority and it’ll just work > > myDetailView = [myDetailViewController getPrimaryView]; > [self.pValidationListStackView addView:myDetailView > inGravity:NSStackViewGravityTop]; // NOTE: Should this not be GravityLeading > as you’re using a horizontal stack view? > [myDetailView setContentHuggingPriority:NSLayoutPriorityDefaultLow > forOrientation:NSLayoutConstraintOrientationHorizontal]; > > and that’s all you should need. > > iain
I tried that and it had no effect. When I resize the window the Scroll View Resizes (and I assume the StackView?) but the Detail View stays the same size - e.g. does not move with the right edge of the Scroll View. Cheers Dave _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
