From 5964af433a96139fd98623174043ff6acd6a376f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 8 Aug 2015 23:33:56 -0400 Subject: [PATCH] Fixed up Spinbox. --- redo/osxaltest/spinbox.swift | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/redo/osxaltest/spinbox.swift b/redo/osxaltest/spinbox.swift index 1f3b17e1..765b1315 100644 --- a/redo/osxaltest/spinbox.swift +++ b/redo/osxaltest/spinbox.swift @@ -67,6 +67,14 @@ nspinbox++ func SetParent(p: Control) { self.parent = p } -} -//TODO p.nonStretchyWidthPredicate = "(==96)" // TODO on the text field only + // TODO justify this + // TODO restrict to the text field only? + override var intrinsicContentSize: NSSize { + get { + var s = super.intrinsicContentSize + s.width = 96 + return s + } + } +}