mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-21 23:26:36 +00:00
Docking: Fixed double-overlay when dragging window over one of the (four cardinal) outer drop boxes. (#2109)
This commit is contained in:
parent
d23c69d319
commit
66cfbbff5e
@ -12354,6 +12354,8 @@ void ImGui::BeginAsDockableDragDropTarget(ImGuiWindow* window)
|
|||||||
if (DockNodePreviewDockCalc(window, root_node, payload_window, &split_outer, is_explicit_target, true))
|
if (DockNodePreviewDockCalc(window, root_node, payload_window, &split_outer, is_explicit_target, true))
|
||||||
split_data = &split_outer;
|
split_data = &split_outer;
|
||||||
DockNodePreviewDockCalc(window, target_node, payload_window, &split_inner, is_explicit_target, false);
|
DockNodePreviewDockCalc(window, target_node, payload_window, &split_inner, is_explicit_target, false);
|
||||||
|
if (split_data == &split_outer)
|
||||||
|
split_inner.IsDropAllowed = false;
|
||||||
|
|
||||||
// Draw inner then outer, so that previewed tab (in inner data) will be behind the outer drop boxes
|
// Draw inner then outer, so that previewed tab (in inner data) will be behind the outer drop boxes
|
||||||
DockNodePreviewDockRender(window, target_node, payload_window, &split_inner);
|
DockNodePreviewDockRender(window, target_node, payload_window, &split_inner);
|
||||||
|
Loading…
Reference in New Issue
Block a user