bevy/examples/games
ickshonpe 373f1eeb1e
UI examples clean up (#9479)
# Objective

Fix a few issues with some of the examples:

* Root UI nodes have an implicit parent with `FlexDirection::Row` and
`AlignItems::Stretch` set. Only a width constraint is needed to fill the
viewport. Specifying ```height: Val::Percent(100.)``` is unnecessary and
can cause confusing overflow behaviour.

* The default for position and size constraint properties is
`Val::Auto`. Setting `left: Val::Auto`, `max_height: Val::Auto`, etc
does nothing.


## Solution

Delete those lines. There should be no observable differences in the
behaviours of any of the examples.

Also changed a padding setting in the `flex_layout` example to use the
`axes` helper function.
2023-08-23 12:49:10 +00:00
..
alien_cake_addict.rs Flatten UI Style properties that use Size + remove Size (#8548) 2023-05-16 01:36:32 +00:00
breakout.rs bevy_audio: ECS-based API redesign (#8424) 2023-07-07 23:01:17 +00:00
contributors.rs fix new clippy lints before they reach stable (#8700) 2023-05-29 07:23:50 +00:00
game_menu.rs UI examples clean up (#9479) 2023-08-23 12:49:10 +00:00