From 52b9fc303b6393712ec06f5113ce2c1c59e5dad3 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 14 Dec 2023 16:52:03 -0800 Subject: [PATCH] Fix overlay rendering when dragging onto the center of a pane --- crates/workspace2/src/pane.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rs index 6b5a131ea0387fb9a0db9444a93122ce75388c6d..11588212ef76e3891c57fc5a14778fd8e48a9e37 100644 --- a/crates/workspace2/src/pane.rs +++ b/crates/workspace2/src/pane.rs @@ -1927,7 +1927,7 @@ impl Render for Pane { this.handle_project_entry_drop(entry_id, cx) })) .map(|div| match self.drag_split_direction { - None => div.full(), + None => div.top_0().left_0().right_0().bottom_0(), Some(SplitDirection::Up) => div.top_0().left_0().right_0().h_32(), Some(SplitDirection::Down) => { div.left_0().bottom_0().right_0().h_32()