summaryrefslogtreecommitdiff
path: root/combobox.go
diff options
context:
space:
mode:
Diffstat (limited to 'combobox.go')
-rw-r--r--combobox.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/combobox.go b/combobox.go
index d42b353..85384be 100644
--- a/combobox.go
+++ b/combobox.go
@@ -154,10 +154,9 @@ func (c *Combobox) setRect(x int, y int, width int, height int, winheight int) e
return c.sysData.setRect(x, y, width, height, winheight)
}
-func (c *Combobox) preferredSize() (width int, height int, err error) {
+func (c *Combobox) preferredSize() (width int, height int) {
c.lock.Lock()
defer c.lock.Unlock()
- width, height = c.sysData.preferredSize()
- return
+ return c.sysData.preferredSize()
}