dpi: force PostEditorFooter height to the height of it's FlowLayoutPanel. unsure as to where this extra padding is coming from
This commit is contained in:
parent
0051af6832
commit
353560ddff
|
@ -234,7 +234,9 @@ namespace OpenLiveWriter.PostEditor
|
||||||
|
|
||||||
// Set a minimum width so the columns in the TableLayoutPanel don't overlap.
|
// Set a minimum width so the columns in the TableLayoutPanel don't overlap.
|
||||||
int tableMinimumWidth = tableLayoutPanel1.Padding.Horizontal + tableLayoutPanel1.Margin.Horizontal;
|
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)
|
if (flowLayoutPanel.Visible)
|
||||||
tableMinimumWidth += flowLayoutPanel.Padding.Horizontal + flowLayoutPanel.Margin.Horizontal + flowLayoutPanel.Width;
|
tableMinimumWidth += flowLayoutPanel.Padding.Horizontal + flowLayoutPanel.Margin.Horizontal + flowLayoutPanel.Width;
|
||||||
|
|
Loading…
Reference in New Issue