1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -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

@@ -12,5 +12,5 @@ publish = false
eframe = { path = "../../crates/eframe", features = [
"__screenshot", # __screenshot is so we can dump a screenshot using EFRAME_SCREENSHOT_TO
] }
egui_extras = { path = "../../crates/egui_extras" }
egui_extras = { path = "../../crates/egui_extras", features = ["log"] }
env_logger = "0.10"

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);
}
}