More TODOs and comments.
This commit is contained in:
parent
372cfd048d
commit
a44498e4c3
|
@ -90,7 +90,7 @@ class Box : NSView, Control {
|
|||
self.parent = p
|
||||
}
|
||||
|
||||
// TODO do we still need to set hugging?
|
||||
// TODO do we still need to set hugging? I think we do for stretchy controls...
|
||||
// TODO try unsetting spinbox intrinsics and seeing what happens
|
||||
private func relayout() {
|
||||
var constraint: String
|
||||
|
|
|
@ -39,6 +39,7 @@ func setVertHuggingPri(view: NSView, priority: NSLayoutPriority) {
|
|||
setHuggingPri(view, priority, NSLayoutConstraintOrientation.Vertical)
|
||||
}
|
||||
|
||||
// use the fitting size, not the intrinsic content size, for the case of recursive views without an intrinsic content size
|
||||
func fittingAlignmentSize(view: NSView) -> NSSize {
|
||||
var s = view.fittingSize
|
||||
// the fitting size is for a frame rect; we need an alignment rect
|
||||
|
|
Loading…
Reference in New Issue