dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.04k stars 1.73k forks source link

WebView can not show whole page #10134

Open xclw2000 opened 2 years ago

xclw2000 commented 2 years ago

I fix my page's size to 1920*1080, and I use a Android TV(1080p) enulator to debug my app. The webview only show part of the page, I had to scroll to view other part of the page. Please see image below image

After the app starts up, I only can see the red square part, and I had to scroll(drag) to view other part. See below image

I used to use Xamarin, I can set android:layout_width and android:layout_height to achive my goal, like this: image

But how can I do this when use Maui?

drasticactions commented 2 years ago

Is your app a net6-android app, or a MAUI app?

If it's net6-android, it's the same as Xamarin. You should be able to use the same layouts in both, nothing has changed there AFAIK.

ghost commented 2 years ago

Hi @xclw2000. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

xclw2000 commented 2 years ago

Hi @xclw2000. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

I have created a repository:

https://github.com/xclw2000/ElectronicClassBoard_Maui.git

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

Zhanglirong-Winnie commented 1 month ago

This issue has been verified using Visual Studio 17.12 Preview 1 (8.0.80 & 8.0.72). Can repro on android platform. If you want to view the entire page, you must drag the scroll bar.

jfversluis commented 4 days ago

Can you maybe add more information on how you did this with Xamarin? Where did you put that XML and how did you make sure that got used? If at all possible, maybe provide a Xamarin project that shows it all working. Then I can see if and how we can translate that to .NET MAUI

dotnet-policy-service[bot] commented 4 days ago

Hi @xclw2000. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.