mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 11:35:35 +03:00
Improve pref panes layout slighlty
This commit is contained in:
parent
b63b18098b
commit
46e4c803ff
@ -135,7 +135,7 @@ class AppearancePrefPane: PrefPane, NSComboBoxDelegate, NSControlTextEditingDele
|
||||
ligatureCheckbox.autoPinEdge(.Top, toEdge: .Bottom, ofView: sizeCombo, withOffset: 18)
|
||||
ligatureCheckbox.autoPinEdge(.Left, toEdge: .Right, ofView: fontTitle, withOffset: 5)
|
||||
|
||||
previewScrollView.autoSetDimension(.Height, toSize: 200)
|
||||
previewScrollView.autoSetDimension(.Height, toSize: 200, relation: .GreaterThanOrEqual)
|
||||
previewScrollView.autoPinEdge(.Top, toEdge: .Bottom, ofView: ligatureCheckbox, withOffset: 18)
|
||||
previewScrollView.autoPinEdgeToSuperviewEdge(.Right, withInset: 18)
|
||||
previewScrollView.autoPinEdgeToSuperviewEdge(.Bottom, withInset: 18)
|
||||
|
@ -76,7 +76,6 @@ class GeneralPrefPane: PrefPane {
|
||||
|
||||
onReactivation.autoPinEdge(.Top, toEdge: .Bottom, ofView: whenLaunching, withOffset: 5)
|
||||
onReactivation.autoPinEdge(.Left, toEdge: .Left, ofView: whenLaunching)
|
||||
onReactivation.autoPinEdgeToSuperviewEdge(.Bottom, withInset: 18)
|
||||
|
||||
self.openWhenLaunchingCheckbox.boolState = self.data.openNewWindowWhenLaunching
|
||||
self.openOnReactivationCheckbox.boolState = self.data.openNewWindowOnReactivation
|
||||
|
@ -43,8 +43,7 @@ class PrefWindowComponent: NSObject, NSTableViewDataSource, NSTableViewDelegate,
|
||||
self.paneContainer.documentView = newValue
|
||||
|
||||
// Auto-layout seems to be smart enough not to add redundant constraints.
|
||||
newValue.autoPinEdgeToSuperviewEdge(.Right)
|
||||
newValue.autoPinEdgeToSuperviewEdge(.Left)
|
||||
newValue.autoPinEdgesToSuperviewEdges()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user