bevy/tools/example-showcase/window-settings-wasm.patch
Rob Parrett 6c485c80e0
Fix example showcase wasm window settings patch (#12608)
# Objective

FIx this failed workflow:
<https://github.com/bevyengine/bevy/actions/runs/8367408952/job/22909715870#step:7:11>

## Solution

Make the required changes on fresh Bevy code and save a new patch
2024-04-06 22:07:49 +00:00

16 lines
651 B
Diff

diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs
index ccc861a78..0cae580cd 100644
--- a/crates/bevy_window/src/window.rs
+++ b/crates/bevy_window/src/window.rs
@@ -293,9 +293,9 @@ impl Default for Window {
transparent: false,
focused: true,
window_level: Default::default(),
- fit_canvas_to_parent: false,
+ fit_canvas_to_parent: true,
prevent_default_event_handling: true,
- canvas: None,
+ canvas: Some("#bevy".to_string()),
window_theme: None,
visible: true,
skip_taskbar: false,