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
21.83k stars 1.67k forks source link

Parent view is visually covering the child view #12040

Open mattleibow opened 1 year ago

mattleibow commented 1 year ago

Description

In some situations, the parent is covering the child... Not sure what this even means.

image

Steps to Reproduce

  1. File | New | Maui App
  2. Add this code to the page:
    <ScrollView>
        <VerticalStackLayout>
            <Label Text="BEFORE" />
            <WebView Source="https://play.famobi.com/smarty-bubbles-2/A-FAMOBI-COM" />
            <Label Text="AFTER" />
        </VerticalStackLayout>
    </ScrollView>
  3. Run
  4. Observe the first label is hidden
  5. Try attach the Android Studio layout inspector (might need to close the app and launch it again to catch it as attaching the inspector sometimes restarts the activity or triggers a re-layout)
  6. Observe the label is covered by the background of the parent

Link to public reproduction project repository

https://github.com/mattleibow/maui-bug-repros/tree/repro-parent-covering-child

Version with bug

6.0 & 7.0

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Tested on Android 13 / API 33

Did you find any workaround?

No response

Relevant log output

No response

hartez commented 1 year ago

So the navigation page is laying out its content at 0,0 instead of 0,[height of title view]?

mattleibow commented 1 year ago

The layout is correct, the label is in the right place. But then the z-index of the stack seems to be off somehow...

hartez commented 1 year ago

When you say the Label is covered by the parent's background - do you mean the background of the VerticalStackLayout (the LayoutViewGroup)?

ghost commented 1 year 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.

homeyf commented 1 year ago

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro on Android platform with sample project. https://github.com/mattleibow/maui-bug-repros/tree/repro-parent-covering-child