From aca81945e85ac44159c0a0ca8a2cd1432776e042 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 2 Aug 2015 00:10:30 -0400 Subject: [PATCH] Added some support code for our changes to tSpinbox to make it have only one view. Unfortunately, this is how we're going to need to do stretchiness with tSpinbox. --- redo/osxaltest/spinbox.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/redo/osxaltest/spinbox.m b/redo/osxaltest/spinbox.m index 7c18570b..fc1b35a3 100644 --- a/redo/osxaltest/spinbox.m +++ b/redo/osxaltest/spinbox.m @@ -1,6 +1,19 @@ // 31 july 2015 #import "osxaltest.h" +// leave a whole lot of space around the alignment rect, just to be safe +@interface tSpinboxContainer : NSView +@end + +@implementation tSpinboxContainer + +- (NSEdgeInsets)alignmentRectInsets +{ + return NSEdgeInsetsMake(50, 50, 50, 50); +} + +@end + @implementation tSpinbox { NSTextField *t; NSStepper *s;