bevy/examples/mobile
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
..
bevy_mobile_example.xcodeproj daily job running mobile example on real devices (#8216) 2023-03-28 23:16:07 +00:00
ios-src IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
src UI examples clean up (#9479) 2023-08-23 12:49:10 +00:00
.gitignore IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
build_rust_deps.sh IOS, Android... same thing (#7493) 2023-02-06 18:08:49 +00:00
Cargo.toml Reduce android example APK size (#8932) 2023-07-05 23:21:33 +00:00
Makefile daily job running mobile example on real devices (#8216) 2023-03-28 23:16:07 +00:00