You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Lochlan Wansbrough (JIRA)" <ji...@apache.org> on 2019/07/03 06:23:00 UTC
[jira] [Comment Edited] (CB-10123) -webkit-scrollbar css does not
work in WKWebViewEngine
[ https://issues.apache.org/jira/browse/CB-10123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16877517#comment-16877517 ]
Lochlan Wansbrough edited comment on CB-10123 at 7/3/19 6:22 AM:
-----------------------------------------------------------------
Forgive me but this seems like a really easy fix that's gone far too long without a solution. Would you support a pull request for this? I'm thinking something simple: two preferences, ShowVerticalScrollIndicator and ShowHorizontalScrollIndicator, default to true. Done. No need to change expectations, just make it overrideable and put it in the docs.
was (Author: lwansbrough):
Forgive me but this seems like a really easy fix that's gone far too long without a solution. Would you support a pull request for this? I'm thinking something simple: two preferences, ShowVerticalScrollIndicator and ShowHorizontalIndicator, default to true. Done. No need to change expectations, just make it overrideable and put it in the docs.
> -webkit-scrollbar css does not work in WKWebViewEngine
> ------------------------------------------------------
>
> Key: CB-10123
> URL: https://issues.apache.org/jira/browse/CB-10123
> Project: Apache Cordova
> Issue Type: Improvement
> Components: cordova-plugin-wkwebview-engine
> Environment: Using iOS 9, with IOS-Cordova 4.0 (beta) and official cordova WKWebView engine.
> Reporter: Cole Turner
> Priority: Major
> Labels: wkwebview-baked-in, wkwebview-known-issues
>
> To hide the appearance of scrollbars in Safari, Webkit, and UIWebView, we use the following CSS:
> {code}
> ::-webkit-scrollbar
> {display:none;}
> {code}
> The WKWebView engine does not honor this property. The only way to control the appearance of a scrollbar is invoking it via a plugin as so:
> {code}
> self.wkWebView.scrollView.showsVerticalScrollIndicator = NO;
> self.wkWebView.scrollView.showsHorizontalScrollIndicator = NO;
> {code}
> It would be nice to abstract this as a plugin preference since the WKWebView engine is now a separate plugin: (via Shazron)
> <preference name="ShowWebViewScrollIndicator" value="vertical, horizontal" />
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org