Unnecessary line in game_menu example (#9406)
# Objective
In the `game_menu` example:
```rust
let button_icon_style = Style {
width: Val::Px(30.0),
// This takes the icons out of the flexbox flow, to be positioned exactly
position_type: PositionType::Absolute,
// The icon will be close to the left border of the button
left: Val::Px(10.0),
right: Val::Auto,
..default()
};
```
The default value for `right` is `Val::Auto` so that line is unnecessary
and can be removed.
This commit is contained in:
parent
cfb65c1eaf
commit
6a8fd54006
@ -409,7 +409,6 @@ mod menu {
|
||||
position_type: PositionType::Absolute,
|
||||
// The icon will be close to the left border of the button
|
||||
left: Val::Px(10.0),
|
||||
right: Val::Auto,
|
||||
..default()
|
||||
};
|
||||
let button_text_style = TextStyle {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user