Auto-layout, Forcing a top-level view to hug its contents
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mellel-com.20210112.gappssmtp.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=kZd0dbVRJ/uGbKHNSyxy/YYgaaH8/RziQ42lYm4wgIU=; b=Fsljql+NnuaxaP20oR87L9/1z7NntbSBaVQhIielyuyiQClyw8IKZvOgSajyCOOONU +rRiF/XMGSPw5mpJhQl4+Elf/CLTMXh+xZ4PLujwC56weMFZ+l/f5Pk2hgR70TKl9zOg plmwqBt61RrLJf1SMPLRG7dWStXt2SUwD5zimBx6NArz5ReLugIIwRR3C3it3TrCCQr5 YQo9ZzUhX8a5ao6jfWGVmyjjoPmqKGNMZlYBK2E9dPFhBoi5z88uqY6hzivxfpnuq724 kBv9Siwc9ofjZ8mp3U51i6knj6rQ9TxSsjvPla7+APLIDCOq0ZHlg1AkKypHzS41WCI9 5vog== I have a view in a nib, the constraints are setup so that the view should expand/contract to fit the contents and the nib is localized for several languages. When I check the frame size of the view in awakeFromNib the size I get is the same as the size set in the nib. I tried forcing the view to resize by calling layout but this didn't change the frame size. Is there a way to force the view to resize, before putting it on the screen? TIA Eyal Redler ------------------------------------------------------------------------------------------------ "If Uri Geller bends spoons with divine powers, then he's doing it the hard way." --James Randi www.eyalredler.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Eyal Redler via Cocoa-dev