Skip to content

Commit

Permalink
Fix visibility on webview2 when window was invisible previously
Browse files Browse the repository at this point in the history
We set webview2 to be always visible for simplicity. This is more of a workaround. Microsoft is also working to fix it:
MicrosoftEdge/WebView2Feedback#1077
  • Loading branch information
Ngo Iok Ui committed Mar 24, 2021
1 parent 485035f commit 7da7bf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/webview/win/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ impl WV for InnerWebView {
}
}

controller.put_is_visible(true);
let _ = controller_clone.set(controller);

if let Some(file_drop_handler) = file_drop_handler {
Expand Down

0 comments on commit 7da7bf3

Please sign in to comment.