2
0
Fork 0
mirror of https://github.com/bevyengine/bevy synced 2025-03-02 06:17:18 +00:00
bevy/examples/wasm
Thierry Berger 8cf5fbbf94
Fix fit_canvas_to_parent ()
Follow up to 

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