diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-24 10:56:35 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-24 10:56:35 -0500 |
| commit | 53db57745f2b0bdb0d6097d6d12d3d7af8f6c639 (patch) | |
| tree | 38e76e5341b85e420003f3bc830d9f09faf9245f /combobox.go | |
| parent | 1510af0005529659798e69fcd9c8f545ee0aa3e1 (diff) | |
Added Control.preferredSize() and preferredSize() for all the standard Controls.
Diffstat (limited to 'combobox.go')
| -rw-r--r-- | combobox.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/combobox.go b/combobox.go index 2f70fa8..255bcf0 100644 --- a/combobox.go +++ b/combobox.go @@ -110,3 +110,11 @@ func (c *Combobox) setRect(x int, y int, width int, height int) error { return c.sysData.setRect(x, y, width, height) } + +func (c *Combobox) preferredSize() (width int, height int, err error) { + c.lock.Lock() + defer c.lock.Unlock() + + width, height = c.sysData.preferredSize() + return +} |
