From 8d64f695e0c34d6801bc9422f7a56ddca7df5b81 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 9 Apr 2015 15:30:24 -0400 Subject: Implemented the foundation for padding. --- new/container_darwin.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'new/container_darwin.m') diff --git a/new/container_darwin.m b/new/container_darwin.m index 5012229..bdfab90 100644 --- a/new/container_darwin.m +++ b/new/container_darwin.m @@ -34,6 +34,8 @@ uiLogObjCClassAllocations // TODO reverify these against /layout rects/, not /frame rects/ #define macXMargin 20 #define macYMargin 20 +#define macXPadding 8 +#define macYPadding 8 - (void)uiUpdateNow { @@ -52,6 +54,8 @@ uiLogObjCClassAllocations width -= 2 * macXMargin; height -= 2 * macYMargin; } + d.xPadding = macXPadding; + d.yPadding = macYPadding; (*(self.child->resize))(self.child, x, y, width, height, &d); } -- cgit v1.2.3