WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 134230
WKWebView doesn't respect -[UIScrollView contentInset]
https://bugs.webkit.org/show_bug.cgi?id=134230
Summary
WKWebView doesn't respect -[UIScrollView contentInset]
Anders Carlsson
Reported
2014-06-23 18:24:49 PDT
WKWebView doesn't respect -[UIScrollView contentInset]
Attachments
Patch
(13.15 KB, patch)
2014-06-23 18:30 PDT
,
Anders Carlsson
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2014-06-23 18:30:53 PDT
Created
attachment 233663
[details]
Patch
WebKit Commit Bot
Comment 2
2014-06-24 07:38:44 PDT
Comment on
attachment 233663
[details]
Patch Clearing flags on attachment: 233663 Committed
r170361
: <
http://trac.webkit.org/changeset/170361
>
WebKit Commit Bot
Comment 3
2014-06-24 07:38:46 PDT
All reviewed patches have been landed. Closing bug.
Benjamin Poulain
Comment 4
2014-06-28 22:27:31 PDT
Not supporting content insets was completely intentional. In UIWebView, we have a lot of issues with the interactions between the content insets and the minimal layout size. There are basically two very different use cases that needs different kind of layout. One good example is that Safari cannot work correctly with this implementation. After discussing this a lot, we decided not to support scrolling to the insets and postpone this to a solution that handle layout correctly.
Oren Rosenblum
Comment 5
2015-01-04 01:55:11 PST
Hi I published question about WKWebView not clickable above it's contentInset:
http://stackoverflow.com/questions/27755251/wkwebview-isnt-clickable-outside-its-contentinset
Is this the same issue?
Christophe Fondacci
Comment 6
2017-08-21 11:19:11 PDT
"Not supporting content insets was completely intentional." The current behavior is very surprising though: negative insets work as expected, and positive insets make the floating element move up and down between 0 inset and the specified value. Please see a demo here:
https://drive.google.com/file/d/0B63_g2Mv5n4uYkNxWjJWeGR1U1E/view?usp=sharing
"we decided not to support scrolling to the insets and postpone this to a solution that handle layout correctly" But it still does something... but not the right thing. It's not that it is not supported, it is that it feels broken. Can you tell us more about "the solution that handle layout correctly" and when this will be available? We are working on a workaround which resizes the webview but it makes footer transparency and overlaying header/footer broken so it is not really satisfying. I don't understand why this bug is marked as "resolved fixed" as it seems neither resolved nor fixed.
Simon Fraser (smfr)
Comment 7
2018-10-12 14:27:06 PDT
Tim, what's the current status?
Rhys Powell
Comment 8
2019-03-12 17:28:19 PDT
Has there been any progress on this? As things stand it's very difficult to build a fairly standard iOS UI where a WKWebview's content 'bleeds' under toolbars and navigation bars.
Ali Juma
Comment 9
2023-11-08 11:10:19 PST
(In reply to Rhys Powell from
comment #8
)
> Has there been any progress on this? As things stand it's very difficult to > build a fairly standard iOS UI where a WKWebview's content 'bleeds' under > toolbars and navigation bars.
Could this bug be revisited? The lack of a public API for this means that third-party browsers on iOS cannot implement the transparent toolbars that Safari has. The last time I checked using breakpoints, Safari is using WKWebView SPI to achieve this effect, specifically, some combination of: -[WKWebView _overrideLayoutParametersWithMinimumLayoutSize:maximumUnobscuredSizeOverride:], -[WKWebView _setObscuredInsets], and -[WKWebView _setUnobscuredSafeAreaInsets]
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug