On 15 aug. 2013, at 20:16, Fritz Anderson wrote: > Do I understand correctly that you have a row in your form that looks like: > > |--Label1-Field1--Label2-Field2 --| > > ? (Not intended to be a constraint-specification format.) And you want Label1 > and Label2 to be of fixed (identical?) size, and Field1 and Field2 to have > variable (equal?) size according to the width of the superview? >
That is exactly the idea. > If I'm not correct, the rest is TL;DR. Caveat that I'm working off the top of > my head on my lunch hour, and drawing suggestions from the same place Xc4 > gets automatic constraints. This is "what I'd try next." > > I'll comment only on the horizontal axis. I'm not going to comment on getting > spacing and alignment from other elements in the view (like the rows above > and below). > > All the horizontal-spacing constraints should be of constant size, and 1000 > priority. > > The labels should have either numerically-constant widths, or you could turn > up the priority on their horizontal compression resistance. The latter will > mean that if a localization requires more or less room for the text, the > label will expand accordingly but take up no more room than necessary. > Consider an additional width constraint of ≥ some number. I have only been able to sort this out by adding in code a constraint that explicitly constrains the two fields as having the same width. My main concern is that it feels too complicated for something this simple. Thanks, Izak --- Grinnikend door het leven... _______________________________________________ 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com