From aba8e7757da8d2a542415257ac845f40f28f78a0 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Mon, 5 Apr 2021 23:52:46 -0700 Subject: Resize vertically for correctness --- grapher/Constants/Constants.cs | 5 ++++- grapher/Models/AccelGUIFactory.cs | 2 +- 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; /// Height of sensitivity chart when displayed alone. - public const int SensitivityChartAloneHeight = 455; + public const int SensitivityChartAloneHeight = 480; /// Height of sensitivity chart when displayed alongside Velocity and Gain charts. public const int SensitivityChartTogetherHeight = 328; @@ -64,6 +64,9 @@ namespace grapher /// Vertical placement of write button above bottom of sensitivity graph public const int ButtonVerticalOffset = 60; + /// Vertical placement of directionality panel below top of containing form + public const int DirectionalityVerticalOffset = 285; + /// Padding between directionality title and containing panel 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, -- cgit v1.2.3