-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Last item in overlay pop-up gets cut off #6098
Comments
In Android 13, in landscape orientation, the list of overlays scrolls and no cropping is observed. |
Also seems to work fine in SC 60.1 on my Samsung Galaxy S23+ in Landscape mode (Android 14): small_Screen_Recording_20250113_211452_StreetComplete.mp4I'll try to test with few older testing phones I have soon. Smells like possible insets issue; @rusty-snake do you know (or could you test) if you have the same issue in SC v59.3 or earlier? (changes about Compose/insets started with 60.0-alpha1, e.g. #6030) |
v59.3 and v60.0 work fine. |
Reproducible on an Android 15 emulator in landscape mode. |
Hmm, I investigated this a bit: I am assuming that the window insets are not applied to the dropdown because the For this reason, I can understand that adding a So, if I - for testing - just add a general padding of 40.dp on the top and bottom:
So it looks like that I cannot even influence the padding around the dropdown menu. Arguably, the dropdown menu should already be constrained by the window insets padding of its parent layout, but at least on Androi 15, it isn't - It is only reproducible on Android 15, not below. This is somewhat worrying (i.e. probably a bug in Android and/or Compose), because the behavior should be the same when edge-to-edge is enabled for all platforms. I am contemplating to report this as a bug, but I'll probably need to build a minimum app with which this can be reproduced. Also, I am not sure where to report it. |
There have been a lot of inset-related changes to Android 15, it seems: I wonder if skipping calling |
ofc I already call enableEdgeToEdge |
mnalis is proposing to check if the bug also occurs when not calling |
I created a minimal Android Studio project with which one can reproduce this issue and posted a bug report here: https://issuetracker.google.com/issues/391393405 Currently, I don't see a possibility to work around this and the priority to find a workaround is relatively low (as the last item in the dropdown is clickable nevertheless), so I am inclined to close this as an upstream issue. |
Makes sense, unless someone will find reasonable workaround. |
To answer my own question: Interestingly, bug seems to be there regardless whether Regular StreetComplete 60.1 (i.e. with modified StreetComplete (i.e. without Device is Xiaomi Redmi Note 13 4G (Android 15) |
Previous: Helium314#723
How to Reproduce
SCEE: Screen high does not matter because custom overlay feature
Expected Behavior
Versions affected
The text was updated successfully, but these errors were encountered: