bevy/tools/example-showcase/window-settings-wasm.patch

17 lines
628 B
Diff
Raw Normal View History

diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs
index 87cdfb050..1d87a0bf5 100644
--- a/crates/bevy_window/src/window.rs
+++ b/crates/bevy_window/src/window.rs
@@ -266,9 +266,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,
}