Fixed empty boxes.
This commit is contained in:
parent
f7c5c6e60e
commit
f66e2e569e
|
@ -68,6 +68,9 @@
|
|||
uintmax_t nStretchy;
|
||||
NSLayoutConstraintOrientation orientation;
|
||||
|
||||
if ([self->children count] == 0)
|
||||
goto selfOnly;
|
||||
|
||||
[self->v removeConstraints:[self->v constraints]];
|
||||
|
||||
orientation = NSLayoutConstraintOrientationHorizontal;
|
||||
|
@ -140,6 +143,7 @@ NSLog(@"%@", constraint);
|
|||
[views release];
|
||||
|
||||
// and now populate for self
|
||||
selfOnly:
|
||||
p->view = self->v;
|
||||
p->attachLeft = YES;
|
||||
p->attachTop = YES;
|
||||
|
|
Loading…
Reference in New Issue