Position Menu layer based on available space

This commit is contained in:
Héctor Ramón Jiménez 2020-04-18 20:44:14 +02:00
parent e29feef8ba
commit f655d9b967
3 changed files with 27 additions and 11 deletions

View file

@ -60,10 +60,6 @@ impl Sandbox for Example {
.push(Text::new("Which is your favorite language?"))
.push(combo_box);
if self.selected_language == Language::Javascript {
content = content.push(Text::new("You are wrong!"));
}
content = content
.push(button)
.push(Space::with_height(Length::Units(800)));