summaryrefslogtreecommitdiff
path: root/newctrl/window_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-18 17:02:51 -0400
committerPietro Gagliardi <[email protected]>2014-10-18 17:02:51 -0400
commit8c8b642adbed274133b6e9d975c7ca8786300d2c (patch)
treefa64294c47863013ee1a76d7525afeb50a0733c7 /newctrl/window_darwin.go
parent922407d5b6e8093d6f6239e43d50b7e20b38c748 (diff)
Fixed Mac OS X sizing and more TODOs. Ready to merge back!
Diffstat (limited to 'newctrl/window_darwin.go')
-rw-r--r--newctrl/window_darwin.go4
1 files changed, 4 insertions, 0 deletions
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() {