Fix overlay rendering when dragging onto the center of a pane (#3667)

This commit is contained in:
Max Brunsfeld
2023-12-14 16:59:19 -08:00
committed by GitHub
+1 -1
View File
@@ -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()