mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 22:20:20 +00:00
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
1 changed files with 0 additions and 1 deletions
|
@ -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 a new issue