mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 01:38:01 +01:00
Fix not splitting orientation correctly after refactoring
This commit is contained in:
@@ -199,7 +199,7 @@ namespace UICatalog.Scenarios {
|
||||
newContainer.Panel2Title = cbTitles.Checked ? $"Panel {panelsCreated}" : string.Empty;
|
||||
|
||||
// Flip orientation
|
||||
newContainer.Orientation = newContainer.Orientation == Orientation.Vertical ?
|
||||
newContainer.Orientation = to.Orientation == Orientation.Vertical ?
|
||||
Orientation.Horizontal :
|
||||
Orientation.Vertical;
|
||||
|
||||
|
||||
@@ -493,6 +493,7 @@ namespace UnitTests {
|
||||
|
||||
Assert.IsType<SplitContainer> (splitContainer.Panel1);
|
||||
var left = (SplitContainer)splitContainer.Panel1;
|
||||
Assert.Same (left.SuperView, splitContainer);
|
||||
|
||||
Assert.Equal (10, left.Panel1.Frame.Width);
|
||||
Assert.Equal (5, left.Panel1.Frame.Height);
|
||||
|
||||
Reference in New Issue
Block a user