summaryrefslogtreecommitdiff
path: root/listbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'listbox.go')
-rw-r--r--listbox.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/listbox.go b/listbox.go
index 36064f2..fae3582 100644
--- a/listbox.go
+++ b/listbox.go
@@ -144,8 +144,14 @@ func (l *Listbox) make(window *sysData) (err error) {
return nil
}
-func (l *Listbox) setRect(x int, y int, width int, height int, winheight int) error {
- return l.sysData.setRect(x, y, width, height, winheight)
+func (l *Listbox) setRect(x int, y int, width int, height int) []resizerequest {
+ return []resizerequest{resizerequest{
+ sysData: l.sysData,
+ x: x,
+ y: y,
+ width: width,
+ height: height,
+ }}
}
func (l *Listbox) preferredSize() (width int, height int) {