From 6010665415aa8ac80effd5d4caea80ea5628166b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 Aug 2014 17:28:53 -0400 Subject: Converted Window on Mac OS X to use the new container system. Now I can merge container and sizing... --- redo/container_darwin.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'redo/container_darwin.go') 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)) } -- cgit v1.2.3