summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
Diffstat (limited to 'button.go')
-rw-r--r--button.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/button.go b/button.go
index cd0d70b..f29d869 100644
--- a/button.go
+++ b/button.go
@@ -62,11 +62,11 @@ func (b *Button) make(window *sysData) error {
return nil
}
-func (b *Button) setRect(x int, y int, width int, height int) error {
+func (b *Button) setRect(x int, y int, width int, height int, winheight int) error {
b.lock.Lock()
defer b.lock.Unlock()
- return b.sysData.setRect(x, y, width, height)
+ return b.sysData.setRect(x, y, width, height, winheight)
}
func (b *Button) preferredSize() (width int, height int, err error) {