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.
This commit is contained in:
parent
08c3602130
commit
aca81945e8
|
@ -1,6 +1,19 @@
|
||||||
// 31 july 2015
|
// 31 july 2015
|
||||||
#import "osxaltest.h"
|
#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 {
|
@implementation tSpinbox {
|
||||||
NSTextField *t;
|
NSTextField *t;
|
||||||
NSStepper *s;
|
NSStepper *s;
|
||||||
|
|
Loading…
Reference in New Issue