[demo] Improve scroll demo and move to own window

This commit is contained in:
Emil Ernerfeldt
2021-01-25 20:52:31 +01:00
parent 5e3a89bf00
commit 749419c9fd
5 changed files with 139 additions and 119 deletions
@@ -8,7 +8,6 @@ pub struct DemoWindow {
num_columns: usize,
widgets: Widgets,
scrolls: Scrolls,
colors: ColorWidgets,
layout: LayoutDemo,
tree: Tree,
@@ -20,7 +19,6 @@ impl Default for DemoWindow {
DemoWindow {
num_columns: 2,
scrolls: Default::default(),
widgets: Default::default(),
colors: Default::default(),
layout: Default::default(),
@@ -68,12 +66,6 @@ impl DemoWindow {
.default_open(false)
.show(ui, |ui| self.box_painting.ui(ui));
CollapsingHeader::new("Scroll area")
.default_open(false)
.show(ui, |ui| {
self.scrolls.ui(ui);
});
CollapsingHeader::new("Resize")
.default_open(false)
.show(ui, |ui| {