diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-04 17:28:53 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-04 17:28:53 -0400 |
| commit | 6010665415aa8ac80effd5d4caea80ea5628166b (patch) | |
| tree | e412b46f141605383dcdd360233c64198be4705e /redo/container_darwin.go | |
| parent | 84297ad7e13d3f10e967358ad10e286e9e193584 (diff) | |
Converted Window on Mac OS X to use the new container system. Now I can merge container and sizing...
Diffstat (limited to 'redo/container_darwin.go')
| -rw-r--r-- | redo/container_darwin.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/redo/container_darwin.go b/redo/container_darwin.go index fd28b4c..1f8a477 100644 --- a/redo/container_darwin.go +++ b/redo/container_darwin.go @@ -10,6 +10,7 @@ import ( import "C" type container struct { + // TODO rename to id view C.id *sizer } @@ -27,5 +28,6 @@ func newContainer(child Control) *container { //export containerResized func containerResized(data unsafe.Pointer, width C.intptr_t, height C.intptr_t) { c := (*container)(unsafe.Pointer(data)) + // the origin of a view's content area is always (0, 0) c.resize(0, 0, int(width), int(height)) } |
