Fixed runtime errors. It MOSTLY works!
This commit is contained in:
parent
1038b8d892
commit
b653a8ac2c
|
@ -168,7 +168,7 @@ static void relayout(uiBox *b)
|
|||
|
||||
// if there is a stretchy control, add the no-stretchy view
|
||||
addRemoveNoStretchyView(b, hasStretchy);
|
||||
if (hasStretchy) {
|
||||
if (!hasStretchy) {
|
||||
[b->view addConstraint:mkConstraint(b->noStretchyView, b->primaryStart,
|
||||
NSLayoutRelationEqual,
|
||||
prev, b->primaryEnd,
|
||||
|
|
|
@ -89,7 +89,7 @@ struct uiSpinbox {
|
|||
self, NSLayoutAttributeBottom,
|
||||
1, 0,
|
||||
@"uiSpinbox bottom edge stepper")];
|
||||
[self addConstraint:mkConstraint(self->stepper, NSLayoutAttributeTrailing,
|
||||
[self addConstraint:mkConstraint(self->tf, NSLayoutAttributeTrailing,
|
||||
NSLayoutRelationEqual,
|
||||
self->stepper, NSLayoutAttributeLeading,
|
||||
1, -3, // TODO
|
||||
|
|
Loading…
Reference in New Issue