Skip to content

Commit

Permalink
xilem: Fix calc example (missing flex property) (#491)
Browse files Browse the repository at this point in the history
Fixes #490
  • Loading branch information
Philipp-M authored Aug 6, 2024
1 parent 99d6160 commit 10387e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xilem/examples/calc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ fn app_logic(data: &mut Calculator) -> impl WidgetView<Calculator> {
nums.map(|num| digit_button(num).flex(1.)),
operator_button(operator).flex(1.),
))
.flex(1.0)
};
flex((
// Display
Expand Down

0 comments on commit 10387e9

Please sign in to comment.