Even more work to bring us closer to the correct answer. uiGroups look right again. We've still got some problems...

This commit is contained in:
Pietro Gagliardi 2016-05-12 12:34:35 -04:00
parent 28c9efa972
commit f5549a19bf
1 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,8 @@ struct uiGroup {
static void removeConstraints(uiGroup *g)
{
singleChildConstraintsRemove(&(g->constraints), g->box);
// set to contentView instead of to the box itself, otherwise we get clipping underneath the label
singleChildConstraintsRemove(&(g->constraints), [g->box contentView]);
}
static void uiGroupDestroy(uiControl *c)
@ -64,7 +65,7 @@ static void groupRelayout(uiGroup *g)
return;
childView = (NSView *) uiControlHandle(g->child);
singleChildConstraintsEstablish(&(g->constraints),
g->box, childView,
[g->box contentView], childView,
uiDarwinControlHugsTrailingEdge(uiDarwinControl(g->child)),
uiDarwinControlHugsBottom(uiDarwinControl(g->child)),
g->margined,