Skip to content

Commit 2a66e7f

Browse files
committed
Fix demo
1 parent 306dae9 commit 2a66e7f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/egui/src/containers/panel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ impl Panel {
476476
/// // `.resizable(true)` on both panels enables drag-to-collapse + drag-to-expand:
477477
/// let collapsed = egui::Panel::top("top_collapsed")
478478
/// .resizable(true)
479-
/// .exact_size(20.0);
479+
/// .default_size(20.0);
480480
/// let expanded = egui::Panel::top("top_expanded")
481481
/// .resizable(true)
482482
/// .default_size(120.0);

crates/egui_demo_lib/src/demo/panels.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl crate::View for Panels {
9494
bottom,
9595
egui::Panel::bottom("bottom_panel_collapsed")
9696
.resizable(true)
97-
.exact_size(16.0),
97+
.default_size(20.0),
9898
egui::Panel::bottom("bottom_panel_expanded")
9999
.resizable(true)
100100
.max_size(128.0),

0 commit comments

Comments
 (0)