iOS Webview Width on XF 2.3

dww84dww84 USMember

I've recently updated my app from Xamarin Forms 1.5.1 to 2.3 and our webviews have started laying the HTML page strangely on iOS devices, particularly noticeable on the 320 width devices.

My custom WebViewRenderer has ScalesPageToFit = true, but the page lays out as if the width is much larger than the screen (see attached).

Have there been major changes to how this control sets the width? Any work arounds?

Answers

  • seanydaseanyda GBMember ✭✭✭✭✭

    Remove the renderer and just use WebView I remember this fixing it for me a while back.

  • dww84dww84 USMember

    @lpdavies said:
    Remove the renderer and just use WebView I remember this fixing it for me a while back.

    Unfortunately we need to use the renderer for more than just this (such as setting the UIWebViewDelegate and others).

Sign In or Register to comment.