Skip to content

Commit a2d1831

Browse files
committed
update setsize
1 parent 387f4f2 commit a2d1831

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/tauri-runtime-cef/src/cef_impl.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,12 @@ fn handle_webview_message<T: UserEvent>(
13121312
width: logical_size.width as i32,
13131313
height: logical_size.height as i32,
13141314
};
1315+
#[cfg(target_os = "macos")]
1316+
let new_bounds = if let Some(window) = app_window.window() {
1317+
macos_webview_bounds(&window, new_bounds)
1318+
} else {
1319+
new_bounds
1320+
};
13151321
overlay.set_bounds(Some(&new_bounds));
13161322
});
13171323

0 commit comments

Comments
 (0)