diff options
Diffstat (limited to 'container_darwin.go')
| -rw-r--r-- | container_darwin.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/container_darwin.go b/container_darwin.go index 539ed57..5cc2b1c 100644 --- a/container_darwin.go +++ b/container_darwin.go @@ -25,8 +25,10 @@ type sizing struct { neighborAlign C.struct_xalignment } -func newContainer() *container { +// containerResized() gets called early so we have to do this in the constructor +func newContainer(resize func(x int, y int, width int, height int, d *sizing)) *container { c := new(container) + c.resize = resize c.id = C.newContainerView(unsafe.Pointer(c)) return c } |
