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

Resize vertical layouts

This commit is contained in:
Emil Ernerfeldt
2023-05-03 16:36:19 +02:00
parent 46e4fb49ec
commit 5fc6bfbf49
4 changed files with 112 additions and 48 deletions

View File

@@ -171,6 +171,14 @@ impl Default for MyApp {
let e = nodes.insert_leaf(gen_view());
nodes.insert_horizontal_node(vec![a, b, c, d, e])
});
tabs.push({
let a = nodes.insert_leaf(gen_view());
let b = nodes.insert_leaf(gen_view());
let c = nodes.insert_leaf(gen_view());
let d = nodes.insert_leaf(gen_view());
let e = nodes.insert_leaf(gen_view());
nodes.insert_vertical_node(vec![a, b, c, d, e])
});
tabs.push({
let a = nodes.insert_leaf(gen_view());
let b = nodes.insert_leaf(gen_view());