Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teal.net; s=teal; h=references:to:cc:in-reply-to:date:subject:mime-version:content-type: message-id:from:from; bh=tNPbw7rtm/BIQGK6lS83lRDrYm0R2lbu8qtk1TaUCAw=; b=NXkPowdupZEFMDRz09vC6JAYlVPZ7gyQ50CS30wk74cLyNRIbQ6iVw+q/dLq8waOfhSCGPcKnPbCl oJ46cw5/YWQzCYeny1H4kzuA8CAzmB/8Q1bsBASkSFD3MBfMFuwZEJ472Uvtn39V66l87B6E2JOqEl d9LEVEXnhjdZTmuY= On Aug 30, 2018, at 17:23 , Demitri Muna <cocoa-dev@demitri.com> wrote:
I tried to force this by adding two constraints, 2 pixels above and below the image, then got this:
2018-08-30 14:55:36.807612-0400 Nightlight[78272:15775715] [Layout] Unable to simultaneously satisfy constraints: ( "<NSLayoutConstraint:0x60c00009be90 NSImageView:0x60c000170e00.height == 16 (active)>", "<NSLayoutConstraint:0x60c000087ee0 V:|-(2)-[NSImageView:0x60c000170e00] (active, names: DE_DataCell:0x60c000188470, '|':DE_DataCell:0x60c000188470 )>", "<NSLayoutConstraint:0x60c000082300 V:[NSImageView:0x60c000170e00]-(2)-| (active, names: DE_DataCell:0x60c000188470, '|':DE_DataCell:0x60c000188470 )>", "<NSLayoutConstraint:0x60c00009c5c0 'NSView-Encapsulated-Layout-Height' DE_DataCell.height == 12 (active, names: DE_DataCell:0x60c000188470 )>" )
“Encapsulated layout height” sounds like one of the constraints that IB adds to your layout when it’s under-constrained at design time. Are you adding the other constraints at run time? _______________________________________________ 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)
-
Quincey Morris