diff --git a/redo/osxaltest/box.m b/redo/osxaltest/box.m index 773ae371..ab56fd55 100644 --- a/redo/osxaltest/box.m +++ b/redo/osxaltest/box.m @@ -67,12 +67,21 @@ pp.extraVert = p->extraVert; pp.views = p->views; pp.n = p->n; + pp.stretchyVert = self->vertical; + pp.firstStretchy = TRUE; for (i = 0; i < [self->children count]; i++) { id cur; + NSNumber *stretchy; first[i] = pp.n; cur = (id) [self->children objectAtIndex:i]; + stretchy = (NSNumber *) [self->stretchy objectAtIndex:i]; + pp.stretchy = [stretchy boolValue]; [cur tFillAutoLayout:&pp]; + if (pp.stretchy && pp.firstStretchy) { + pp.firstStretchy = FALSE; + pp.stretchyTo = first[i]; + } } p->n = pp.n; diff --git a/redo/osxaltest/osxaltest.h b/redo/osxaltest/osxaltest.h index 8f14143e..1c01d796 100644 --- a/redo/osxaltest/osxaltest.h +++ b/redo/osxaltest/osxaltest.h @@ -11,6 +11,10 @@ struct tAutoLayoutParams { NSMutableArray *extraVert; NSMutableDictionary *views; uintmax_t n; + BOOL stretchy; + BOOL stretchyVert; + BOOL firstStretchy; + uintmax_t stretchyTo; }; @protocol tControl