summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-04-05 23:52:46 -0700
committerJacob Palecki <[email protected]>2021-04-05 23:52:46 -0700
commitaba8e7757da8d2a542415257ac845f40f28f78a0 (patch)
tree46599c8b83268aaaf346517e7bfa47283ab93d39
parentCorrectly align gain switch (diff)
downloadrawaccel-aba8e7757da8d2a542415257ac845f40f28f78a0.tar.xz
rawaccel-aba8e7757da8d2a542415257ac845f40f28f78a0.zip
Resize vertically for correctness
-rw-r--r--grapher/Constants/Constants.cs5
-rw-r--r--grapher/Models/AccelGUIFactory.cs2
2 files changed, 5 insertions, 2 deletions
diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs
index d2e747c..2bc9bbc 100644
--- a/grapher/Constants/Constants.cs
+++ b/grapher/Constants/Constants.cs
@@ -44,7 +44,7 @@ namespace grapher
public const int DropDownLeftSeparation = 10;
/// <summary> Height of sensitivity chart when displayed alone. </summary>
- public const int SensitivityChartAloneHeight = 455;
+ public const int SensitivityChartAloneHeight = 480;
/// <summary> Height of sensitivity chart when displayed alongside Velocity and Gain charts. </summary>
public const int SensitivityChartTogetherHeight = 328;
@@ -64,6 +64,9 @@ namespace grapher
/// <summary> Vertical placement of write button above bottom of sensitivity graph </summary>
public const int ButtonVerticalOffset = 60;
+ /// <summary> Vertical placement of directionality panel below top of containing form </summary>
+ public const int DirectionalityVerticalOffset = 285;
+
/// <summary> Padding between directionality title and containing panel </summary>
public const int DirectionalityTitlePad = 8;
diff --git a/grapher/Models/AccelGUIFactory.cs b/grapher/Models/AccelGUIFactory.cs
index 6e03293..de2d99c 100644
--- a/grapher/Models/AccelGUIFactory.cs
+++ b/grapher/Models/AccelGUIFactory.cs
@@ -394,7 +394,7 @@ namespace grapher.Models
range,
wholeCheckBox,
byComponentCheckBox,
- 260);
+ Constants.DirectionalityVerticalOffset);
var applyOptions = new ApplyOptions(
byComponentXYLock,