rerun-io / egui_tiles

A tiling layout engine for egui with drag-and-drop and resizing
Apache License 2.0
311 stars 25 forks source link

Fix: make sure `Tree::ui` allocates the space it uses in parent `Ui` #71

Closed rydb closed 5 months ago

rydb commented 6 months ago

I discovered in https://github.com/rerun-io/egui_tiles/issues/69

that the window of a tree ui does not fully fit inside the window by default. This pr fixes that issue by adding

ui.allocate_space(ui.available_size());

to the end of tree.ui().

rydb commented 5 months ago

needs cargo fmt

done