mirror of
https://github.com/bevyengine/bevy
synced 2024-12-01 17:09:12 +00:00
6a8fd54006
# 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. |
||
---|---|---|
.. | ||
alien_cake_addict.rs | ||
breakout.rs | ||
contributors.rs | ||
game_menu.rs |