Re: Automatically resize parent view when subviews resize
Re: Automatically resize parent view when subviews resize
- Subject: Re: Automatically resize parent view when subviews resize
- From: lorenzo <email@hidden>
- Date: Mon, 14 Apr 2014 14:17:37 -0500
On 2014-04-14 12:39, Kyle Sluder wrote:
On Mon, Apr 14, 2014, at 10:20 AM, lorenzo wrote:
On 2014-04-14 09:28, Fritz Anderson wrote:
>
> What constraints are you putting on the subviews you add dynamically to
> A and B?
The subviews, a subclass of NSView, are made up of three views, a
vertical NSSlider, an NSTextfield rotated 90 degrees and pinned
to the left side of the slider and another textfield pinned to the
bottom of the slider. This subview returns a height of 150.0 and width
of 50 for its inrtinsic size.
The subviews set top/bottom space to container, with 5px between each.
Did you remember to call
-setTranslatesAutoresizingMaskIntoConstraints:NO on all your
dynamically-added subviews?
--Kyle Sluder
Yes I do. I call it on on the various subviews, but not on the parent
view.
_______________________________________________
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