Fixed up Spinbox.

This commit is contained in:
Pietro Gagliardi 2015-08-08 23:33:56 -04:00
parent f570acef6f
commit 5964af433a
1 changed files with 10 additions and 2 deletions

View File

@ -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
}
}
}