summaryrefslogtreecommitdiff
path: root/combobox.go
diff options
context:
space:
mode:
Diffstat (limited to 'combobox.go')
-rw-r--r--combobox.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/combobox.go b/combobox.go
index ae2edfd..2b50a72 100644
--- a/combobox.go
+++ b/combobox.go
@@ -143,14 +143,14 @@ func (c *Combobox) make(window *sysData) (err error) {
return nil
}
-func (c *Combobox) setRect(x int, y int, width int, height int) []resizerequest {
- return []resizerequest{resizerequest{
+func (c *Combobox) setRect(x int, y int, width int, height int, rr *[]resizerequest) {
+ *rr = append(*rr, resizerequest{
sysData: c.sysData,
x: x,
y: y,
width: width,
height: height,
- }}
+ })
}
func (c *Combobox) preferredSize() (width int, height int) {