From bb0f9be60009ad4156670ac863ba1d095b6fd736 Mon Sep 17 00:00:00 2001 From: Misaki Date: Sat, 28 Mar 2026 13:36:36 +0900 Subject: [PATCH] fix(dock): address reviewer feedback on drop target overlay --- src/Editor/Ghost.Editor/View/Controls/DockLayout.cs | 3 ++- src/Editor/Ghost.Editor/View/Controls/DockLayout.xaml | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Editor/Ghost.Editor/View/Controls/DockLayout.cs b/src/Editor/Ghost.Editor/View/Controls/DockLayout.cs index 60e6848..eaf4191 100644 --- a/src/Editor/Ghost.Editor/View/Controls/DockLayout.cs +++ b/src/Editor/Ghost.Editor/View/Controls/DockLayout.cs @@ -12,6 +12,7 @@ namespace Ghost.Editor.View.Controls; /// A control that renders a docking layout tree. /// [TemplatePart(Name = PART_ROOT_GRID, Type = typeof(Grid))] +[TemplatePart(Name = PART_DROP_TARGET_OVERLAY, Type = typeof(Border))] public sealed partial class DockLayout : Control { private const string PART_ROOT_GRID = "PART_RootGrid"; @@ -22,7 +23,7 @@ public sealed partial class DockLayout : Control private Border? _dropTargetOverlay; private readonly HashSet _subscribedNodes = new(); - public enum DockPosition { Center, Top, Bottom, Left, Right, None } + internal enum DockPosition { Center, Top, Bottom, Left, Right, None } public DockLayout() { diff --git a/src/Editor/Ghost.Editor/View/Controls/DockLayout.xaml b/src/Editor/Ghost.Editor/View/Controls/DockLayout.xaml index c67f56c..880efde 100644 --- a/src/Editor/Ghost.Editor/View/Controls/DockLayout.xaml +++ b/src/Editor/Ghost.Editor/View/Controls/DockLayout.xaml @@ -10,8 +10,9 @@