Fix overlay rendering when dragging onto the center of a pane (#3667)
This commit is contained in:
@@ -1927,7 +1927,7 @@ impl Render for Pane {
|
|||||||
this.handle_project_entry_drop(entry_id, cx)
|
this.handle_project_entry_drop(entry_id, cx)
|
||||||
}))
|
}))
|
||||||
.map(|div| match self.drag_split_direction {
|
.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::Up) => div.top_0().left_0().right_0().h_32(),
|
||||||
Some(SplitDirection::Down) => {
|
Some(SplitDirection::Down) => {
|
||||||
div.left_0().bottom_0().right_0().h_32()
|
div.left_0().bottom_0().right_0().h_32()
|
||||||
|
|||||||
Reference in New Issue
Block a user