fix: Prevent time/sales vertical scrollbar clipping

This commit is contained in:
John Colvin committed 2022-03-02 23:27:01 -05:00
1 parent d8dd9ce4a2
commit f9f6fa6233
1 file changed
+6 -1
@@ -26,6 +26,10 @@
class TimeAndSalesWindow : SparkWindow<TimeAndSalesSettings>, ISharedWindow {
public const string WINDOW_TYPE_NAME = "TimeAndSales";
public const string WINDOW_DISPLAY_NAME = "Time And Sales";
// This value represents the number of virtual pixels needed to prevent the right-most column
// from being clipped by the vertical scrollbar (unclear why this is neccessary, but it's
// likely some dpi issue)
const double _VERTICAL_SCROLLBAR_OVERLAP = 9;
static readonly TimeSpan _trade_poll_interval = TimeSpan.FromSeconds(0.4);
@@ -89,7 +93,8 @@
.Sum(gcs => gcs.width)
+ SPARK_MENU_COLLAPSED_WIDTH
+ LAUNCHER_BUTTON_BORDER_WIDTH
+ EXTRA_FOR_NO_HORIZONTAL_SCROLLBAR_WIDTH;
+ EXTRA_FOR_NO_HORIZONTAL_SCROLLBAR_WIDTH
+ _VERTICAL_SCROLLBAR_OVERLAP;
public string thread_id { get; }