summaryrefslogtreecommitdiff
path: root/redo/table_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-10 15:56:59 -0400
committerPietro Gagliardi <[email protected]>2014-08-10 15:56:59 -0400
commit5ec2c768face785c502ee6508b5ed5ed0124b307 (patch)
tree38de710ac54dad8d82660f4bdad9955edaf896f0 /redo/table_darwin.go
parentd30956d625cd83fd0c6ade761139d5c6834c1e6c (diff)
Made a more intelligent Table.preferredSize() for Mac OS X.
Diffstat (limited to 'redo/table_darwin.go')
-rw-r--r--redo/table_darwin.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/redo/table_darwin.go b/redo/table_darwin.go
index 14b2c8d..37fcdf4 100644
--- a/redo/table_darwin.go
+++ b/redo/table_darwin.go
@@ -76,7 +76,8 @@ func (t *table) allocate(x int, y int, width int, height int, d *sizing) []*allo
}
func (t *table) preferredSize(d *sizing) (width, height int) {
- return basepreferredSize(t, d)
+ s := C.tablePreferredSize(t._id)
+ return int(s.width), int(s.height)
}
func (t *table) commitResize(c *allocation, d *sizing) {