Skip to content

Commit 229d7f8

Browse files
authored
fix(core): fix child webviews on macOS and Windows treated as full webview window (#11616)
* fix(core): fix child webviews on macOS and Windows treated as full webview window closes #11452 * Update .changes/child-windows-macos.md
1 parent c561786 commit 229d7f8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changes/child-windows-macos.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"tauri": "patch:bug"
3+
"tauri-runtime-wry": "patch:bug"
4+
---
5+
6+
Fix regression in creating child webviews on macOS and Windows, covering the whole window.
7+

crates/tauri-runtime-wry/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4364,7 +4364,7 @@ fn create_webview<T: UserEvent>(
43644364
target_os = "ios",
43654365
target_os = "android"
43664366
))]
4367-
WebviewKind::WindowChild => webview_builder.build(&window),
4367+
WebviewKind::WindowChild => webview_builder.build_as_child(&window),
43684368
WebviewKind::WindowContent => {
43694369
#[cfg(any(
43704370
target_os = "windows",

0 commit comments

Comments
 (0)