diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-03 17:44:03 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-03 17:44:03 -0500 |
| commit | 962a84e056fd524ed458391961510a1c32892895 (patch) | |
| tree | 515e6e1b6ad5662b99291f8132edc2afd9ca6e91 /stdwndclass_windows.go | |
| parent | 6c3389283138cb4baf5ccc3d5785c318e376f26f (diff) | |
Fixed Mac OS X control placement flipping. This is done by passing the height of the window around setRect() calls to avoid polling the content view frame each time.
Diffstat (limited to 'stdwndclass_windows.go')
| -rw-r--r-- | stdwndclass_windows.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go index 3f52ea5..4afe1c8 100644 --- a/stdwndclass_windows.go +++ b/stdwndclass_windows.go @@ -51,7 +51,8 @@ func stdWndProc(s *sysData) func(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam if r1 == 0 { panic("GetClientRect failed: " + err.Error()) } - err = s.resize(int(r.Left), int(r.Top), int(r.Right), int(r.Bottom)) + // top-left corner is (0,0) so no need for winheight + err = s.resize(int(r.Left), int(r.Top), int(r.Right), int(r.Bottom), 0) if err != nil { panic("child resize failed: " + err.Error()) } |
