From 8c8b642adbed274133b6e9d975c7ca8786300d2c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 18 Oct 2014 17:02:51 -0400 Subject: Fixed Mac OS X sizing and more TODOs. Ready to merge back! --- newctrl/window_darwin.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'newctrl/window_darwin.go') diff --git a/newctrl/window_darwin.go b/newctrl/window_darwin.go index 4758ac5..e0804be 100644 --- a/newctrl/window_darwin.go +++ b/newctrl/window_darwin.go @@ -34,6 +34,7 @@ func newWindow(title string, width int, height int, control Control) *window { C.windowSetDelegate(w.id, unsafe.Pointer(w)) C.windowSetContentView(w.id, w.container.id) w.child.setParent(w.container.parent()) + // trigger an initial resize return w } @@ -49,6 +50,9 @@ func (w *window) SetTitle(title string) { func (w *window) Show() { C.windowShow(w.id) + // trigger an initial resize + // TODO fine-tune this + windowResized(unsafe.Pointer(w)) } func (w *window) Hide() { -- cgit v1.2.3