I have an app loading a page in a webview. There is black spacing to the right of the content, I believe it's because the webpage is extending beyond the screen size. How to I make the webview fill the entire screen using a Cross Platform approach, but not allow horizontal scrolling. I would really appreciate any help!
My code is below...
public partial class Search : ContentPage
{
public Search ()
{
Title = "Search";
Icon = "06-magnify.png";
Image header = new Image {
Source = "logo.png"
};
WebView webView = new WebView
{
Source = new UrlWebViewSource
{
Url = "http://www.test.com/search?show_navigation=false",
},
VerticalOptions = LayoutOptions.FillAndExpand,
};
// Accomodate iPhone status bar.
this.Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5);
// Build the page.
this.Content = new StackLayout {
Children = {
header,
webView
}
};
}
}