[iOS][WK2] r171124 is incorrect when the virtual keyboard is up
Created attachment 235339 [details] Patch
Comment on attachment 235339 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=235339&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:803 > + CGFloat maxHorizontalOffset = contentSize.width + contentInsets.right - scrollViewSize.width; > + if (contentOffset.x > maxHorizontalOffset) > + contentOffset.x = maxHorizontalOffset; > + CGFloat maxVerticalOffset = contentSize.height + contentInsets.bottom - scrollViewSize.height; > + if (contentOffset.y > maxVerticalOffset) > + contentOffset.y = maxVerticalOffset; > + if (contentOffset.x < -contentInsets.left) > + contentOffset.x = -contentInsets.left; > + if (contentOffset.y < -contentInsets.top) > + contentOffset.y = -contentInsets.top; > + return contentOffset; std::min()/std::max()?
Committed r171507: <http://trac.webkit.org/changeset/171507>