Merge pull request #94 from GaborApatiNagy/xs64bit-CA-137250

Xs64bit CA-137250: Minimising XC window loses its left bottom window
This commit is contained in:
Mihaela Stoica 2014-06-13 16:04:07 +01:00
commit 5bdbb1c3e0

View File

@ -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