fix: address re-entrancy in ReplaceChild and invalid split in AddDocument
This commit is contained in:
@@ -100,7 +100,7 @@ public class DockingLayout : Control
|
||||
}
|
||||
}
|
||||
|
||||
if (target == DockTarget.Center)
|
||||
if (target == DockTarget.Center || targetGroup.Children.Count == 0)
|
||||
{
|
||||
targetGroup.AddChild(document);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user