Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10123

-webkit-scrollbar css does not work in WKWebViewEngine

    XMLWordPrintableJSON

    Details

      Description

      To hide the appearance of scrollbars in Safari, Webkit, and UIWebView, we use the following CSS:

      ::-webkit-scrollbar
      
      {display:none;}
      

      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:

      self.wkWebView.scrollView.showsVerticalScrollIndicator = NO;
      self.wkWebView.scrollView.showsHorizontalScrollIndicator = NO;
      

      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" />

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              colept Cole Turner
            • Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: