diff options
| author | Jacob Palecki <[email protected]> | 2021-07-01 23:30:13 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2021-07-01 23:30:13 -0700 |
| commit | a8eec2c939982010b760b1ae77b361d5f7a7a7f5 (patch) | |
| tree | 0e22c064a823b94129f7b170d4401a07aa677f5a | |
| parent | Further formatting adjustments (diff) | |
| download | rawaccel-a8eec2c939982010b760b1ae77b361d5f7a7a7f5.tar.xz rawaccel-a8eec2c939982010b760b1ae77b361d5f7a7a7f5.zip | |
Format mostly correct
| -rw-r--r-- | grapher/Models/Options/AccelOptionSet.cs | 1 | ||||
| -rw-r--r-- | grapher/Models/Options/AccelTypeOptions.cs | 18 |
2 files changed, 15 insertions, 4 deletions
diff --git a/grapher/Models/Options/AccelOptionSet.cs b/grapher/Models/Options/AccelOptionSet.cs index 8fb2ad5..75eb017 100644 --- a/grapher/Models/Options/AccelOptionSet.cs +++ b/grapher/Models/Options/AccelOptionSet.cs @@ -61,6 +61,7 @@ namespace grapher.Models.Options Options.ShowShortened(); DisplayTitle(); + Options.HandleLUTOptionsOnResize(); } } diff --git a/grapher/Models/Options/AccelTypeOptions.cs b/grapher/Models/Options/AccelTypeOptions.cs index 75860f4..30940ad 100644 --- a/grapher/Models/Options/AccelTypeOptions.cs +++ b/grapher/Models/Options/AccelTypeOptions.cs @@ -253,8 +253,6 @@ namespace grapher public void ShowFull() { - LutText.Expand(); - if (ShowingDefault) { AccelDropdown.Text = Constants.AccelDropDownDefaultFullText; @@ -262,12 +260,13 @@ namespace grapher Left = Acceleration.Left + Constants.DropDownLeftSeparation; Width = Acceleration.Width - Constants.DropDownLeftSeparation; + + LutText.Expand(); + HandleLUTOptionsOnResize(); } public void ShowShortened() { - LutText.Shorten(); - if (ShowingDefault) { AccelDropdown.Text = Constants.AccelDropDownDefaultShortText; @@ -275,6 +274,8 @@ namespace grapher Left = Acceleration.Field.Left; Width = Acceleration.Field.Width; + + LutText.Shorten(); } public void SetArgs(ref AccelArgs args) @@ -334,6 +335,15 @@ namespace grapher LutApply.AlignActiveValues(); } + public void HandleLUTOptionsOnResize() + { + LutText.Left = AccelDropdown.Left; + LutPanel.Left = GainSwitch.Left - 100; + LutPanel.Width = Acceleration.ActiveValueLabel.CenteringLabel.Right - LutPanel.Left; + LutApply.Left = LutPanel.Left; + LutApply.Width = AccelDropdown.Right - LutPanel.Left; + } + private void OnIndexChanged(object sender, EventArgs e) { Layout(Beneath); |