bevy/tools
Thierry Berger 8cf5fbbf94
Fix fit_canvas_to_parent (#11278)
Follow up to #11057

Implemented suggestions from reviewers from: a simpler
fit_canvas_to_parent leads to an explicit CSS setting to the canvas.

From my understanding, it has do be set after wgpu creation due to wgpu
overriding the canvas width/height:
4400a58470/examples/src/utils.rs (L68-L74)


# Changelog

- Re-enable a `fit_canvas_to_parent`, it's removal from
https://github.com/bevyengine/bevy/pull/11057 was problematic. Still,
its inner working is more simple than before: bevy doesn't handle its
resizing, winit does.

## Migration Guide

- Cancels the migration from
https://github.com/bevyengine/bevy/pull/11057
2024-03-03 14:33:30 +00:00
..
build-templated-pages Use immutable key for HashMap and HashSet (#12086) 2024-02-26 16:27:40 +00:00
build-wasm-example Update wgpu to v0.19.3 and unpin web-sys. (#12247) 2024-03-02 00:44:51 +00:00
ci Explicitly run +nightly for -Zcheck-cfg pass in ci. (#12230) 2024-03-01 18:25:19 +00:00
example-showcase Fix fit_canvas_to_parent (#11278) 2024-03-03 14:33:30 +00:00
publish.sh Upstreaming bevy_color. (#12013) 2024-02-23 17:51:31 +00:00