1
1
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:
Tae Won Ha 2016-08-15 21:35:21 +02:00
parent b63b18098b
commit 46e4c803ff
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
3 changed files with 2 additions and 4 deletions

View File

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

View File

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

View File

@ -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()
}
}