Bug 161880 - With a WKWebView's scroll view, a negative content offset y value is reset to 0 if the web view's frame height is increased.
Summary: With a WKWebView's scroll view, a negative content offset y value is reset to...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad iOS 9.3
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-09-12 15:56 PDT by gchatz
Modified: 2016-09-12 21:22 PDT (History)
2 users (show)

See Also:


Attachments
Test app (27.61 KB, application/zip)
2016-09-12 15:56 PDT, gchatz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description gchatz 2016-09-12 15:56:31 PDT
Created attachment 288628 [details]
Test app

Summary:
With a WKWebView's scroll view, a negative content offset y value is reset to 0 if the web view's frame height is increased.

Steps to Reproduce:
1. Set content offset of a WKWebView to a negative value.
2. Set the WKWebView's height to a bigger value.
3. Observe the new content offset of the web view.
(See test app)

Expected Results:
The content offset should stay negative.

Actual Results:
The content offset is changed to 0.

Version:
Since at least iOS 9. Present in iOS 10.

Configuration:
iPhones and iPads