fix autoresizing for multiwindow iOS

flexible margin somehow makes the window centered at the bottom (pushes all edges)
This commit is contained in:
Lucas Nogueira
2025-10-28 18:11:18 -03:00
parent df04aa8729
commit ae9fe88ed7

View File

@@ -474,9 +474,9 @@ impl InnerWebView {
}
#[cfg(target_os = "ios")]
{
// set all autoresizingmasks
webview.setAutoresizingMask(UIViewAutoresizing::from_bits(31).unwrap());
// let () = msg_send![webview, setAutoresizingMask: 31];
webview.setAutoresizingMask(
UIViewAutoresizing::FlexibleWidth | UIViewAutoresizing::FlexibleHeight,
);
// disable scroll bounce by default
// https://developer.apple.com/documentation/webkit/wkwebview/1614784-scrollview?language=objc