More TODOs and comments.

This commit is contained in:
Pietro Gagliardi 2015-08-11 20:23:12 -04:00
parent 372cfd048d
commit a44498e4c3
2 changed files with 2 additions and 1 deletions

View File

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

View File

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