diff options
Diffstat (limited to 'window_darwin.go')
| -rw-r--r-- | window_darwin.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/window_darwin.go b/window_darwin.go index 32f744a..cffc2a0 100644 --- a/window_darwin.go +++ b/window_darwin.go @@ -27,12 +27,11 @@ func newWindow(title string, width int, height int, control Control) *window { id: id, closing: newEvent(), child: control, - container: newContainer(), } C.windowSetDelegate(w.id, unsafe.Pointer(w)) - C.windowSetContentView(w.id, w.container.id) + w.container = newContainer(w.child.resize) w.child.setParent(w.container.parent()) - w.container.resize = w.child.resize + C.windowSetContentView(w.id, w.container.id) // trigger an initial resize return w } @@ -49,6 +48,7 @@ func (w *window) SetTitle(title string) { func (w *window) Show() { C.windowShow(w.id) + // TODO we need a dummy resize here because things might not be in the right place } func (w *window) Hide() { |
