From ccc1e3ab096f610755825c621d338b01636b3e4a Mon Sep 17 00:00:00 2001 From: Gabor Apati-Nagy Date: Fri, 13 Jun 2014 12:19:08 +0100 Subject: [PATCH] CA-137250: Minimising XC window loses its left bottom window --- XenAdmin/Controls/MainWindowControls/NavigationPane.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/XenAdmin/Controls/MainWindowControls/NavigationPane.cs b/XenAdmin/Controls/MainWindowControls/NavigationPane.cs index e182da256..1fe282fd8 100644 --- a/XenAdmin/Controls/MainWindowControls/NavigationPane.cs +++ b/XenAdmin/Controls/MainWindowControls/NavigationPane.cs @@ -115,7 +115,12 @@ namespace XenAdmin.Controls.MainWindowControls protected override void OnResize(EventArgs e) { base.OnResize(e); + splitContainer1.Panel1MinSize = splitContainer1.ClientSize.Height - toolStripBig.MaximumSize.Height - splitContainer1.SplitterWidth; + + int maxSplitterDistance = splitContainer1.ClientSize.Height - toolStripSmall.MaximumSize.Height - splitContainer1.SplitterWidth; + if (splitContainer1.SplitterDistance > maxSplitterDistance) + splitContainer1.SplitterDistance = maxSplitterDistance; } #region Accessors