xamarin/Xamarin.Forms

WebView creating black right side border that increases in size

Aperta

#5313 aperta il 19 feb 2019

 (2 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/webviewe/5 :clock5:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

I am working on an iPad using Xamarin Forms 3.5.0.129452.

I have two content views inside of a content page, both have webviews and both display a black right side border that seemingly cannot be eliminate. My app has other content views that animate on and off the screen and the more I animate the content views that contain the webviews on and off the screen and resize them to work for the design of the app, the border line gets thicker and thicker. This last bit is the real issue, I would have just slapped a white strip over the line and called it a day, but the fact it gets thicker is quite annoying to deal with. I would post a picture but this is not a personal project so I cannot display the app.

There was a bug reported on bugzilla - https://bugzilla.xamarin.com/show_bug.cgi?id=31487 but my webviews are no longer in a tabbed page and it still appears. I also resolved a similar issue in another app by putting 'webView.Opaque = false;' and 'webView.BackgroundColor = UIColor.Clear;' in the WebViewRenderer, but this will not work in my customWebViewRenderer.

Steps to Reproduce

  1. Create a content view with a webView
  2. Put the content view in a content page
  3. Display the content page and you will see the border line.

Expected Behavior

There should not be a border.

Actual Behavior

There is a black border only on the right side.

Basic Information

  • Version with issue: 3.5.0.129452
  • Last known good version: none that I am aware of.
  • IDE: Visual Studio 2017
  • Platform Target Frameworks:
    • iOS: 12.1.1
  • Nuget Packages: none that affect this.
  • Affected Devices: iPad

Screenshots

I cannot provide screenshots, it is proprietary.

Reproduction Link

Guida contributor