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 /control.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 'control.go')
| -rw-r--r-- | control.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,6 +8,6 @@ import ( // A Control represents an UI control. Note that Control contains unexported members; this has the consequence that you can't build custom controls that interface directly with the system-specific code (fo rinstance, to import an unsupported control), or at least not without some hackery. If you want to make your own controls, embed Area and provide its necessities. type Control interface { make(window *sysData) error - setRect(x int, y int, width int, height int) error + setRect(x int, y int, width int, height int, winheight int) error preferredSize() (width int, height int, err error) } |
