JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.39k stars 1.12k forks source link

ExposedDropdownMenu has wrong padding when has more then 1 item #4299

Open weekly71 opened 4 months ago

weekly71 commented 4 months ago

Describe the bug I have an app using Compose Multiplatform, which worked well on 1.5.12. But i updated to 1.6.0-beta2 (1.6.0-rc01 works behaves the same) because of PullRefresh which i needed in my app. But then i saw a bug (which isn't there on 1.6.0-beta1 and 1.5.12): When ExposedDropdownMenu has more then 1 items it suddenly goes to the top of view.

Affected platforms Select one of the platforms below:

Versions

To Reproduce Steps and/or the code snippet to reproduce the behavior:

  1. Create a simple app with ExposedDropdownMenu text input which can have multiple items
  2. Run it on mobile device.
  3. Try to enter some text that matches multiple items.
  4. See that ExposedDropdownMenu is on the top.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Screenshot_2024-02-14-12-45-56-972_com weekly bebrobus Screenshot_2024-02-14-12-45-42-805_com weekly bebrobus Bildschirmfoto 2024-02-14 um 13 02 33 The last screenshot is how it should be

Additional context On desktop is seems to work OK.

Schahen commented 4 months ago

Hi @weekly71 - if the bug is Android-only (which seemingly it is since it's tested only against Android and Desktop, being problematic only at Android) then please, report it in the Jetpack Compose tracker