Fix a long-standing silly bug. Vertical and Horizontal were reversed

This commit is contained in:
baldurk
2016-02-28 11:52:07 +01:00
parent 0a42d3e4d7
commit 81ff983fa2
+2 -2
View File
@@ -106,9 +106,9 @@ namespace renderdocui.Controls
SplitterDistance = Panel1MinSize;
else if (m_Collapsed && !Panel1Collapse)
{
if(Orientation == Orientation.Vertical)
if (Orientation == Orientation.Horizontal)
SplitterDistance = Height - Panel2MinSize;
else if(Orientation == Orientation.Horizontal)
else if(Orientation == Orientation.Vertical)
SplitterDistance = Width - Panel2MinSize;
}
}