saket / cascade

Nested popup menus with smooth height animations for Android
https://saket.github.io/cascade
Apache License 2.0
2.02k stars 67 forks source link

Popup isnt visible on second screen on dual screen phones #51

Open MV-GH opened 8 months ago

MV-GH commented 8 months ago

I received a report from a user that when we made the switch to this library that the popups on one screen don't appear anymore.

When the app is opening on one screen everything is fine, just the other screen the popups/dialogs don't appear at all.

I had the device + Android version but I can't find the report back again. I'll update this issue when I do.

saket commented 8 months ago

Interesting. Wanna help me investigate what might be happening? We could use the Surface Duo emulator: https://learn.microsoft.com/en-us/dual-screen/android/emulator/get-started

MV-GH commented 8 months ago

https://github.com/saket/cascade/assets/67873169/483acdf9-1716-4a2a-9c72-8690939dd91b

Managed to reproduce this on Surface duo 2 on Android 11

First screen works

On the second screen it doesnt appear (You do see the 3rd dialog appear but that one uses the default material3 dropdownmenu)

When I rotate it, the topscreen works but the bottom screen doesn't

My centered version of your cascade dropdown does work on the right screen

MV-GH commented 8 months ago

On left screen I get these bounds

image

On right screen where it doesn't work

image