File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
crates/tauri-runtime-cef/src Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1355,12 +1355,19 @@ fn handle_webview_message<T: UserEvent>(
13551355 . find ( |w| w. webview_id == webview_id)
13561356 . and_then ( |wrapper| wrapper. overlay . as_ref ( ) )
13571357 {
1358- overlay . set_bounds ( Some ( & cef:: Rect {
1358+ let bounds = cef:: Rect {
13591359 x : logical_position. x ,
13601360 y : logical_position. y ,
13611361 width : logical_size. width as i32 ,
13621362 height : logical_size. height as i32 ,
1363- } ) ) ;
1363+ } ;
1364+ #[ cfg( target_os = "macos" ) ]
1365+ let bounds = if let Some ( window) = app_window. window ( ) {
1366+ macos_webview_bounds ( & window, bounds)
1367+ } else {
1368+ bounds
1369+ } ;
1370+ overlay. set_bounds ( Some ( & bounds) ) ;
13641371 }
13651372
13661373 // update autoresize ratios if enabled
You can’t perform that action at this time.
0 commit comments