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:
parent
28c9efa972
commit
f5549a19bf
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue