macOS: ButtonedDetailViewController: Set min dimensions

This commit is contained in:
Roopesh Chander 2019-03-18 13:47:40 +05:30
parent 2e86e5ac35
commit 36f7340daa
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,12 @@ class ButtonedDetailViewController: NSViewController {
button.centerXAnchor.constraint(equalTo: view.centerXAnchor),
button.centerYAnchor.constraint(equalTo: view.centerYAnchor)
])
NSLayoutConstraint.activate([
view.widthAnchor.constraint(greaterThanOrEqualToConstant: 320),
view.heightAnchor.constraint(greaterThanOrEqualToConstant: 120)
])
self.view = view
}