bevy/tools/example-showcase
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
..
src Add a [lints] entry for workspace members missing it (#11900) 2024-02-19 17:09:47 +00:00
asset-source-website.patch examples showcase: use patches instead of sed for wasm hacks (#10601) 2023-11-17 22:21:12 +00:00
Cargo.toml Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
disable-audio.patch run examples on macOS to validate PRs (#11630) 2024-01-31 20:03:47 +00:00
extra-window-resized-events.patch example showcase: fix window resized patch (#11596) 2024-01-29 17:53:18 +00:00
fixed-window-position.patch hacks for running (and screenshotting) the examples in CI on a github runner (#9220) 2023-10-13 19:19:17 +00:00
reduce-light-cluster-config.patch hacks for running (and screenshotting) the examples in CI on a github runner (#9220) 2023-10-13 19:19:17 +00:00
remove-desktop-app-mode.patch example showcase patches: use default instead of game mode for desktop (#11250) 2024-01-08 20:52:43 +00:00
window-settings-wasm.patch Fix fit_canvas_to_parent (#11278) 2024-03-03 14:33:30 +00:00