Changed uiGroup on OS X to properly use the NSBox content view. That doesn't fix things either...

This commit is contained in:
Pietro Gagliardi 2015-08-19 17:57:34 -04:00
parent 190f9265a1
commit 7d252178b6
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ static void groupRelayout(uiDarwinControl *c)
// first relayout the child // first relayout the child
(*(cc->Relayout))(cc); (*(cc->Relayout))(cc);
// now relayout ourselves // now relayout ourselves
layoutSingleView(g->box, childView, g->margined); layoutSingleView([g->box contentView], childView, g->margined);
} }
char *uiGroupTitle(uiGroup *g) char *uiGroupTitle(uiGroup *g)
@ -71,7 +71,7 @@ void uiGroupSetChild(uiGroup *g, uiControl *child)
if (g->child != NULL) { if (g->child != NULL) {
childView = (NSView *) uiControlHandle(g->child); childView = (NSView *) uiControlHandle(g->child);
uiControlSetParent(g->child, uiControl(g)); uiControlSetParent(g->child, uiControl(g));
[g->box addSubview:childView]; [[g->box contentView] addSubview:childView];
uiDarwinControlTriggerRelayout(uiDarwinControl(g)); uiDarwinControlTriggerRelayout(uiDarwinControl(g));
} }
} }