Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 24177 [details]
We are using Xamarin native and we are wrapping website with html5 video player. Web page looks fine, but the player is extremely stretched. I can see only left part of it, but the right part (with FULLSCREEN button) in invisible to me.
I have checked the same issue using native android (java) and everything is OK. A video player is scaled and fits device screen.
See more details in attached screenshot.
Visual Studio Community 2017 for Mac
Version 7.0.1 (build 24)
Version: 184.108.40.206 (Visual Studio Community)
(In reply to kirilllo from comment #0)
> Created attachment 24177 [details]
> Streched player
> We are using Xamarin native and we are wrapping website with html5 video
> player. Web page looks fine, but the player is extremely stretched. I can
> see only left part of it, but the right part (with FULLSCREEN button) in
> invisible to me.
> I have checked the same issue using native android (java) and everything is
> OK. A video player is scaled and fits device screen.
> See more details in attached screenshot.
> Visual Studio Community 2017 for Mac
> Version 7.0.1 (build 24)
> Version: 220.127.116.11 (Visual Studio Community)
To further investigate this issue, can you please attach two projects to this bugzilla report? 1) The Xamarin.Android project that shows the stretched player, and 2) The Android(Java) project that demonstrates it working just fine? Typically the Xamarin.Android and Android(Java) should be of parity. You can feel free to upload these projects to this bug and I'll investigate further.
Just to ensure you are on the latest version, please update to the latest stable channel if you haven't already.
Thank you for your response. We made some investigations and have some strange results.
When we use Xamarin app (android webiew, not xamarin forms) - the website detects the size of our webview as 1440. But if I will do the same check with the native android (java) app - the website will return the size of 360.
However, if I will check the "width" property of WebView element in C# (Xamarin) and Java (Android) the result will be 360 for both cases.
1440 - the size of device screen in pixels.
360 - I think this is the screen size in dip.
Can you explain this difference in dimensions? Because of this, we have a lot of problems. A website set the width of his elements to 1440 and that's why they looked stretched in our webwiew. I suppose that webview should return 360 for Xamarin webview as well as for Android webview.
Thank you for your help.
Hi, guys. Any thoughts about my issue?
(In reply to kirilllo from comment #3)
> Hi, guys. Any thoughts about my issue?
Could you supply the two projects you are using per the request of Jon? This will help us confirm both issues. Thanks!
I am sorry, but we have a proprietary app. And I can't give you projects with links to our website (due to restrictions and regulations). I thought that maybe this is the common problem with webview width and you can point me to the solution
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!