Skip to content

Commit 2936727

Browse files
committed
Set UIScrollViewContentInsetAdjustment to never.
1 parent bf5b3bf commit 2936727

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • webview/src/iosMain/kotlin/com/multiplatform/webview/web

webview/src/iosMain/kotlin/com/multiplatform/webview/web/WebView.ios.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,8 @@ fun IOSWebView(
151151
scrollEnabled = it.scrollEnabled
152152
showsHorizontalScrollIndicator = it.showHorizontalScrollIndicator
153153
showsVerticalScrollIndicator = it.showVerticalScrollIndicator
154-
if (
155-
platform.UIKit.UIDevice.currentDevice.systemVersion
156-
.toDouble() >= 11.0
157-
) {
158-
contentInsetAdjustmentBehavior = platform.UIKit.UIScrollViewContentInsetAdjustmentBehavior.UIScrollViewContentInsetAdjustmentNever
159-
}
154+
contentInsetAdjustmentBehavior =
155+
platform.UIKit.UIScrollViewContentInsetAdjustmentBehavior.UIScrollViewContentInsetAdjustmentNever
160156
}
161157
}
162158

0 commit comments

Comments
 (0)