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

Update wasm/web example

This commit is contained in:
Emil Ernerfeldt
2020-04-23 09:50:03 +02:00
parent 723c3ca908
commit 25b06a6ff0
8 changed files with 47 additions and 19 deletions

View File

@@ -45,7 +45,9 @@ impl ExampleApp {
));
});
region.collapsing("Widgets", |region| {
CollapsingHeader::new("Widgets")
.default_open()
.show(region, |region| {
region.horizontal(Align::Min, |region| {
region.add(label!("Text can have").text_color(srgba(110, 255, 110, 255)));
region.add(label!("color").text_color(srgba(128, 140, 255, 255)));
@@ -133,7 +135,7 @@ impl ExampleApp {
});
CollapsingHeader::new("Scroll area")
.default_open()
// .default_open()
.show(region, |region| {
ScrollArea::default().show(region, |region| {
region.add_label(LOREM_IPSUM);