diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-09 15:30:24 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-09 15:30:24 -0400 |
| commit | 8d64f695e0c34d6801bc9422f7a56ddca7df5b81 (patch) | |
| tree | 5b9b3947ff2dd97ec44e030b13765703facf0b75 /new/container_darwin.m | |
| parent | 8e0cd27605149f16141470ad49dd71e26598223e (diff) | |
Implemented the foundation for padding.
Diffstat (limited to 'new/container_darwin.m')
| -rw-r--r-- | new/container_darwin.m | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |
