Skip to content
This repository was archived by the owner on Sep 25, 2021. It is now read-only.

Commit 87c6573

Browse files
author
Dylan Ginsburg
committed
Merge branch 'adjusted-insets' into swift-3.0
# Conflicts: # Turbolinks/VisitableView.swift
2 parents 271c2e3 + 7dce7d1 commit 87c6573

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Turbolinks/VisitableView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ open class VisitableView: UIView {
188188

189189
private func needsUpdateForContentInsets(_ insets: UIEdgeInsets) -> Bool {
190190
guard let scrollView = webView?.scrollView else { return false }
191-
return (scrollView.contentInset.top != insets.top && insets.top != 0) ||
192-
(scrollView.contentInset.bottom != insets.bottom && insets.bottom != 0)
191+
return scrollView.contentInset.top != adjustedInsets.top || scrollView.contentInset.bottom != adjustedInsets.bottom
193192
}
194193

195194
private func updateWebViewScrollViewInsets(_ insets: UIEdgeInsets) {

0 commit comments

Comments
 (0)