summaryrefslogtreecommitdiff
path: root/sysdata.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-03 17:44:03 -0500
committerPietro Gagliardi <[email protected]>2014-03-03 17:44:03 -0500
commit962a84e056fd524ed458391961510a1c32892895 (patch)
tree515e6e1b6ad5662b99291f8132edc2afd9ca6e91 /sysdata.go
parent6c3389283138cb4baf5ccc3d5785c318e376f26f (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 'sysdata.go')
-rw-r--r--sysdata.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdata.go b/sysdata.go
index f6a4455..4574684 100644
--- a/sysdata.go
+++ b/sysdata.go
@@ -16,7 +16,7 @@ func Event() chan struct{} {
type cSysData struct {
ctype int
event chan struct{}
- resize func(x int, y int, width int, height int) error
+ resize func(x int, y int, width int, height int, winheight int) error
alternate bool // editable for Combobox, multi-select for listbox, password for lineedit
}
func (c *cSysData) make(initText string, window *sysData) error {
@@ -31,7 +31,7 @@ func (c *cSysData) hide() error {
func (c *cSysData) setText(text string) error {
panic(runtime.GOOS + " sysData does not define setText()")
}
-func (c *cSysData) setRect(x int, y int, width int, height int) error {
+func (c *cSysData) setRect(x int, y int, width int, height int, winheight int) error {
panic(runtime.GOOS + " sysData does not define setRect()")
}
func (c *cSysData) isChecked() bool {