macOS: ButtonedDetailViewController: Set min dimensions
This commit is contained in:
parent
2e86e5ac35
commit
36f7340daa
|
@ -35,6 +35,12 @@ class ButtonedDetailViewController: NSViewController {
|
||||||
button.centerXAnchor.constraint(equalTo: view.centerXAnchor),
|
button.centerXAnchor.constraint(equalTo: view.centerXAnchor),
|
||||||
button.centerYAnchor.constraint(equalTo: view.centerYAnchor)
|
button.centerYAnchor.constraint(equalTo: view.centerYAnchor)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
NSLayoutConstraint.activate([
|
||||||
|
view.widthAnchor.constraint(greaterThanOrEqualToConstant: 320),
|
||||||
|
view.heightAnchor.constraint(greaterThanOrEqualToConstant: 120)
|
||||||
|
])
|
||||||
|
|
||||||
self.view = view
|
self.view = view
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue