Improves #11052 # Changelog - Remove `Window::fit_canvas_to_parent`, as its resizing on wasm now respects its CSS configuration. ## Migration Guide - Remove uses of `Window::fit_canvas_to_parent` in favor of CSS properties, for example: ```css canvas { width: 100%; height: 100%; } ```
		
			
				
	
	
		
			15 lines
		
	
	
		
			545 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			545 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs
 | 
						|
index 7b5c75d38..8e9404b93 100644
 | 
						|
--- a/crates/bevy_window/src/window.rs
 | 
						|
+++ b/crates/bevy_window/src/window.rs
 | 
						|
@@ -245,8 +245,8 @@ impl Default for Window {
 | 
						|
             transparent: false,
 | 
						|
             focused: true,
 | 
						|
             window_level: Default::default(),
 | 
						|
             prevent_default_event_handling: true,
 | 
						|
-            canvas: None,
 | 
						|
+            canvas: Some("#bevy".to_string()),
 | 
						|
             window_theme: None,
 | 
						|
             visible: true,
 | 
						|
         }
 |