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
|
// if there is a stretchy control, add the no-stretchy view
|
||||||
addRemoveNoStretchyView(b, hasStretchy);
|
addRemoveNoStretchyView(b, hasStretchy);
|
||||||
if (hasStretchy) {
|
if (!hasStretchy) {
|
||||||
[b->view addConstraint:mkConstraint(b->noStretchyView, b->primaryStart,
|
[b->view addConstraint:mkConstraint(b->noStretchyView, b->primaryStart,
|
||||||
NSLayoutRelationEqual,
|
NSLayoutRelationEqual,
|
||||||
prev, b->primaryEnd,
|
prev, b->primaryEnd,
|
||||||
|
|
|
@ -89,7 +89,7 @@ struct uiSpinbox {
|
||||||
self, NSLayoutAttributeBottom,
|
self, NSLayoutAttributeBottom,
|
||||||
1, 0,
|
1, 0,
|
||||||
@"uiSpinbox bottom edge stepper")];
|
@"uiSpinbox bottom edge stepper")];
|
||||||
[self addConstraint:mkConstraint(self->stepper, NSLayoutAttributeTrailing,
|
[self addConstraint:mkConstraint(self->tf, NSLayoutAttributeTrailing,
|
||||||
NSLayoutRelationEqual,
|
NSLayoutRelationEqual,
|
||||||
self->stepper, NSLayoutAttributeLeading,
|
self->stepper, NSLayoutAttributeLeading,
|
||||||
1, -3, // TODO
|
1, -3, // TODO
|
||||||
|
|
Loading…
Reference in New Issue