Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Grid with custom MauiScrollview control and handler has wrong z index and changes when overscrolling #20689

Open
jurganson opened this issue Feb 19, 2024 · 2 comments
Labels
area-controls-scrollview ScrollView platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@jurganson
Copy link

Description

I have a grid with the row definitions "Auto, *". In the first row, I have a simple HorizontalStacklayout with some text, sort of like a banner. Then in the second row, I have a custom MauiScrollView control which is populated by a handler in Android. When running in iOS I see the expected result of the scrollview rendering inside its allocated space and essentially "slides under" the banner. However, in Android, the Scrollview is rendered on top of the banner. Furthermore, when I overscroll at the bottom of the list, the ZIndex changes and renders it below as it should, resulting in a wierd UI bug.

scrcpy_V2Rpt8qdVX.mp4

Steps to Reproduce

  1. Create a MAUI sample app
  2. In the main .xaml, create a Grid with RowDefinitions "Auto, *"
  3. Create a simple TableView control
  4. In Android, make a handler which populates the control inside a custom Android view which has been set by CreatePlatformView
  5. In the aforementioned grid, add a label or other view to the first row and then the custom control to the second row.

Link to public reproduction project repository

https://github.com/jurganson/custom-android-in-grid-bad-zindex-repro

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

Setting the ZIndex manually on the custom control and header layout solves the issue

Relevant log output

No response

@jurganson jurganson added the t/bug Something isn't working label Feb 19, 2024
@jurganson jurganson changed the title Grid with custom Android MauiScrollview control and handler has wrong z index and changes when overscrolling [Android] Grid with custom MauiScrollview control and handler has wrong z index and changes when overscrolling Feb 19, 2024
@jsuarezruiz jsuarezruiz added area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/android 🤖 area-controls-scrollview ScrollView labels Feb 19, 2024
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Feb 19, 2024
@ghost
Copy link

ghost commented Feb 19, 2024

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Mar 25, 2024
@XamlTest
Copy link

Verified this on VS 17.10.0 Preview 2.0(8.0.14). Repro on Android 14.0-API34 with below Project:
custom-android-in-grid-bad-zindex-repro.zip

@Eilon Eilon removed the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 14, 2024
@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-scrollview ScrollView platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants