Browse Source

Revert "fix(wry): resize webview on window move, closes #1911" (#2202)

This reverts commit 06abe65569d4a4a19b535829c26aae34590600ab.
Lucas Fernandes Nogueira 4 years ago
parent
commit
a410958d45
2 changed files with 1 additions and 7 deletions
  1. 0 5
      .changes/fix-webview-resize-on-move.md
  2. 1 2
      core/tauri-runtime-wry/src/lib.rs

+ 0 - 5
.changes/fix-webview-resize-on-move.md

@@ -1,5 +0,0 @@
----
-"tauri-runtime-wry": patch
----
-
-Applies a workaround to a Windows webview2 positioning issue after a window move event.

+ 1 - 2
core/tauri-runtime-wry/src/lib.rs

@@ -1592,8 +1592,7 @@ fn handle_event_loop(
             }
           }
         }
-        // we also resize the webview on `Moved` to fix https://github.com/tauri-apps/tauri/issues/1911
-        WryWindowEvent::Resized(_) | WryWindowEvent::Moved(_) => {
+        WryWindowEvent::Resized(_) => {
           if let Err(e) = webviews[&window_id].inner.resize() {
             eprintln!("{}", e);
           }