Fixed runtime errors. It MOSTLY works!

This commit is contained in:
Pietro Gagliardi 2016-04-30 18:40:09 -04:00
parent 1038b8d892
commit b653a8ac2c
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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