bevy/examples/wasm
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
..
.gitignore Implement single threaded task scheduler for WebAssembly (#496) 2020-09-15 18:05:31 -07:00
assets Remove wasm specific examples (#3705) 2022-01-17 22:38:05 +00:00
favicon.ico Implement single threaded task scheduler for WebAssembly (#496) 2020-09-15 18:05:31 -07:00
index.html Fix fit_canvas_to_parent (#11278) 2024-03-03 14:33:30 +00:00