mirror of
https://github.com/Drop-OSS/wry-cef.git
synced 2026-01-30 20:55:24 +01:00
fix autoresizing for multiwindow iOS
flexible margin somehow makes the window centered at the bottom (pushes all edges)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user