diff options
| author | Jacob Palecki <[email protected]> | 2020-09-08 12:35:23 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-08 12:35:23 -0700 |
| commit | a6448c4a2447a090558da5f52dea3dc418389e8a (patch) | |
| tree | 0b985ffcc1551cfdaddb63864904e8f80da335cf /grapher/Models/Options/ApplyOptions.cs | |
| parent | Remove and sort usings en masse (diff) | |
| download | rawaccel-a6448c4a2447a090558da5f52dea3dc418389e8a.tar.xz rawaccel-a6448c4a2447a090558da5f52dea3dc418389e8a.zip | |
Fix few small bugs
Diffstat (limited to 'grapher/Models/Options/ApplyOptions.cs')
| -rw-r--r-- | grapher/Models/Options/ApplyOptions.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/grapher/Models/Options/ApplyOptions.cs b/grapher/Models/Options/ApplyOptions.cs index 6ff2753..29f923d 100644 --- a/grapher/Models/Options/ApplyOptions.cs +++ b/grapher/Models/Options/ApplyOptions.cs @@ -43,6 +43,8 @@ namespace grapher.Models.Options ByComponentVectorXYLock.CheckedChanged += new System.EventHandler(OnByComponentXYLockChecked); ByComponentVectorXYLock.Checked = true; + Rotation.SnapTo(Sensitivity); + EnableWholeApplication(); } @@ -229,9 +231,15 @@ namespace grapher.Models.Options LockXYLabel.Left = OptionSetX.ActiveValuesTitle.Left + OptionSetX.ActiveValuesTitle.Width; Sensitivity.Fields.LockCheckBox.Left = LockXYLabel.Left + LockXYLabel.Width / 2 - Sensitivity.Fields.LockCheckBox.Width / 2; ByComponentVectorXYLock.Left = Sensitivity.Fields.LockCheckBox.Left; - OptionSetX.AlignActiveValuesByTitle(); - Sensitivity.AlignActiveValues(OptionSetX.ActiveValuesTitle.Width); - Rotation.AlignActiveValues(OptionSetX.ActiveValuesTitle.Width); + AlignActiveValues(); + } + + private void AlignActiveValues() + { + OptionSetX.AlignActiveValues(); + OptionSetY.AlignActiveValues(); + Sensitivity.AlignActiveValues(); + Rotation.AlignActiveValues(); } #endregion Methods |