summaryrefslogtreecommitdiff
path: root/group_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'group_darwin.go')
-rw-r--r--group_darwin.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/group_darwin.go b/group_darwin.go
index eb3055c..aeca48a 100644
--- a/group_darwin.go
+++ b/group_darwin.go
@@ -18,11 +18,10 @@ type group struct {
func newGroup(text string, control Control) Group {
g := new(group)
- g.container = newContainer()
- g.controlSingleObject = newControlSingleObject(C.newGroup(g.container.id))
g.child = control
+ g.container = newContainer(g.child.resize)
g.child.setParent(g.container.parent())
- g.container.resize = g.child.resize
+ g.controlSingleObject = newControlSingleObject(C.newGroup(g.container.id))
g.SetText(text)
return g
}