diff options
author | 2024-02-20 03:56:30 +0100 | |
---|---|---|
committer | 2024-02-20 03:56:30 +0100 | |
commit | 698b9001b12bfb23fe1eccece62eae6417bea18a (patch) | |
tree | 3db828501fedac26342c41fcec05d0e9a7477f0f /winit | |
parent | 0fe265adb0a97e64b0c83cbb19c7d0179bb60975 (diff) | |
parent | 35e2049ee668791f67b5325fc156b8c042d26d49 (diff) | |
download | iced-698b9001b12bfb23fe1eccece62eae6417bea18a.tar.gz iced-698b9001b12bfb23fe1eccece62eae6417bea18a.tar.bz2 iced-698b9001b12bfb23fe1eccece62eae6417bea18a.zip |
Merge pull request #2271 from iced-rs/fix/wasm
Fix WebAssembly platform
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/application.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index 0c596b3f..1fd51d82 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -159,6 +159,10 @@ where use winit::platform::web::WindowExtWebSys; let canvas = window.canvas().expect("Get window canvas"); + let _ = canvas.set_attribute( + "style", + "display: block; width: 100%; height: 100%", + ); let window = web_sys::window().unwrap(); let document = window.document().unwrap(); |