fix(docking): address code quality issues and improve structural integrity

This commit is contained in:
2026-03-28 22:42:07 +09:00
parent 35731d4ebe
commit d367cff79f
3 changed files with 10 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ public class DockingLayout : Control
if (targetGroup != null && targetGroup.Root != this)
{
throw new ArgumentException("targetGroup does not belong to this DockingLayout");
throw new ArgumentException("targetGroup does not belong to this DockingLayout", nameof(targetGroup));
}
if (RootPanel == null)
@@ -150,7 +150,7 @@ public class DockingLayout : Control
{
// Different orientation, need a new sub-panel
var newPanel = new DockPanel { Orientation = orientation };
parentPanel.InsertChild(index, newPanel);
parentPanel.ReplaceChild(targetGroup, newPanel);
if (target == DockTarget.Left || target == DockTarget.Top)
{