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
16.2k stars 1.17k forks source link

DropDownMenu should allow specifying area to not cover #1903

Closed m-sasha closed 1 month ago

m-sasha commented 2 years ago

I'm trying to implement an auto-suggest box by using a TextField for entering text and a DropDownMenu for the list of suggestions. Unfortunately, if the dropdown doesn't fit below the textfield, it will cover it and expand up to the top of the window, making it unusable for auto-suggest.

There should be a way to specify an area inside the window the dropdown menu should not overlap. It could try fitting below, above and if it fails, simply limit itself in height.

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.