1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Buggy drop-detection

This commit is contained in:
Emil Ernerfeldt
2023-04-23 22:45:25 +02:00
parent 9b154c6d1d
commit b5eddc5d5c
3 changed files with 307 additions and 155 deletions

View File

@@ -104,8 +104,13 @@ fn tree_ui(
tree_ui(ui, behavior, nodes, child);
}
}
dock::NodeLayout::Horizontal(horizontal) => {
for &child in &horizontal.children {
dock::NodeLayout::Horizontal(layout) => {
for &child in &layout.children {
tree_ui(ui, behavior, nodes, child);
}
}
dock::NodeLayout::Vertical(layout) => {
for &child in &layout.children {
tree_ui(ui, behavior, nodes, child);
}
}