From 353560ddff904233c7e93540ed909301096186a6 Mon Sep 17 00:00:00 2001 From: Nick Vella Date: Thu, 13 Jun 2019 21:47:50 +1000 Subject: [PATCH] dpi: force PostEditorFooter height to the height of it's FlowLayoutPanel. unsure as to where this extra padding is coming from --- src/managed/OpenLiveWriter.PostEditor/PostEditorFooter.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/managed/OpenLiveWriter.PostEditor/PostEditorFooter.cs b/src/managed/OpenLiveWriter.PostEditor/PostEditorFooter.cs index 48391788..4c9067b0 100644 --- a/src/managed/OpenLiveWriter.PostEditor/PostEditorFooter.cs +++ b/src/managed/OpenLiveWriter.PostEditor/PostEditorFooter.cs @@ -234,7 +234,9 @@ namespace OpenLiveWriter.PostEditor // Set a minimum width so the columns in the TableLayoutPanel don't overlap. int tableMinimumWidth = tableLayoutPanel1.Padding.Horizontal + tableLayoutPanel1.Margin.Horizontal; - int tableMinimumHeight = tableLayoutPanel1.Height; + // FIXME: Kludge to fix height of footer on Hi-DPI, always set to the height of the flow layout panel. + // This assumes the status text will never be taller than the tabs. + int tableMinimumHeight = flowLayoutPanel.Height; if (flowLayoutPanel.Visible) tableMinimumWidth += flowLayoutPanel.Padding.Horizontal + flowLayoutPanel.Margin.Horizontal + flowLayoutPanel.Width;