1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-11 08:30:55 +00:00

Made failed attempt to apply height constraint.

This commit is contained in:
Thomas Harte 2018-06-18 21:35:22 -04:00
parent 17702bfb89
commit 6ed3a49fe1

View File

@ -319,6 +319,18 @@ class MachineDocument:
Bundle.main.loadNibNamed(NSNib.Name(rawValue: "Activity"), owner: self, topLevelObjects: nil)
showActivity(nil)
// Add a constraints to minimise window height.
// let heightConstraint = NSLayoutConstraint(
// item: self.activityPanel.contentView!,
// attribute: .height,
// relatedBy: .equal,
// toItem: nil,
// attribute: .notAnAttribute,
// multiplier: 0.0,
// constant: 20.0)
// heightConstraint.priority = .defaultLow
// self.activityPanel.contentView?.addConstraint(heightConstraint)
// Inspect the activity panel for indicators.
var activityIndicators: [NSLevelIndicator] = []
var textFields: [NSTextField] = []