diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-26 03:24:27 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-26 03:24:27 -0400 |
| commit | 0b4c6a9228b5d6c3a69ff55a7b989f8d744b6756 (patch) | |
| tree | f36161620bc9697307dc56028ba46789db328caa /delegate_darwin.go | |
| parent | 5e17d64b091036396aee8faa887f2f135188d3ac (diff) | |
Finished implementing the new control sizing system on Mac OS X. The new label behavior needs to be reimplemented next.
Diffstat (limited to 'delegate_darwin.go')
| -rw-r--r-- | delegate_darwin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/delegate_darwin.go b/delegate_darwin.go index 1881567..7d21c3d 100644 --- a/delegate_darwin.go +++ b/delegate_darwin.go @@ -34,8 +34,8 @@ func appDelegate_windowDidResize(win C.id) { s := getSysData(win) wincv := C.windowGetContentView(win) // we want the content view's size, not the window's r := C.frame(wincv) - // winheight is used here because (0,0) is the bottom-left corner, not the top-left corner - s.doResize(0, 0, int(r.width), int(r.height), int(r.height)) + // (0,0) is the bottom left corner but this is handled in sysData.translateAllocationCoords() + s.resizeWindow(int(r.width), int(r.height)) C.display(win) // redraw everything } |
