Tried to debug all this ambiguity. Argh.
This commit is contained in:
parent
0fe5214c09
commit
2f3c0449ba
|
@ -186,6 +186,14 @@ struct uiForm {
|
||||||
@"uiForm child trailing edge constraint");
|
@"uiForm child trailing edge constraint");
|
||||||
[self addConstraint:c];
|
[self addConstraint:c];
|
||||||
[self->hEdges addObject:c];
|
[self->hEdges addObject:c];
|
||||||
|
|
||||||
|
c = mkConstraint(fc.label, NSLayoutAttributeTrailing,
|
||||||
|
NSLayoutRelationEqual,
|
||||||
|
[fc view], NSLayoutAttributeLeading,
|
||||||
|
1, 0,
|
||||||
|
@"TODO");
|
||||||
|
[self addConstraint:c];
|
||||||
|
[self->inBetweens addObject:c];
|
||||||
}
|
}
|
||||||
|
|
||||||
// we don't arrange the labels vertically; that's done when we add the control since those constraints don't need to change (they just need to be at their baseline)
|
// we don't arrange the labels vertically; that's done when we add the control since those constraints don't need to change (they just need to be at their baseline)
|
||||||
|
@ -263,6 +271,11 @@ struct uiForm {
|
||||||
CGFloat padding;
|
CGFloat padding;
|
||||||
NSLayoutConstraint *c;
|
NSLayoutConstraint *c;
|
||||||
|
|
||||||
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 3*NSEC_PER_SEC),
|
||||||
|
dispatch_get_main_queue(),
|
||||||
|
^{
|
||||||
|
[[self window]visualizeConstraints:[self constraints]];
|
||||||
|
});
|
||||||
self->padded = p;
|
self->padded = p;
|
||||||
padding = [self paddingAmount];
|
padding = [self paddingAmount];
|
||||||
for (c in self->inBetweens)
|
for (c in self->inBetweens)
|
||||||
|
|
Loading…
Reference in New Issue