Hi everyone. I'm hoping someone can help me with an issue i'm having with DropDownMenu. I made a stackoverflow post here: https://stackoverflow.com/questions/66965883/jetpack-compose-how-to-force-a-dropdownmenu-to-be-anchored-underneath-its-paren
The TLDR of it is that my dropdown menu is too large to remain anchored under the button that opens it (or it is anchored but centered vertically). How can I force it to expand in height from the bottom of the button it is anchored to, to the bottom of the screen? I've tried playing around with wrapContentSize but that allows it to be too tall. The only thing that has kind of worked but seems like a hacky solution was to just manually set the height to 200.dp (but this is not exactly to the bottom of the screen). Any help would be very much appreciated, I've been stuck on this for days...
g
Gabriele Mariotti
04/08/2021, 1:33 PM
I don’t think we can change it.
Inside the DropDownMenu there is
Copy code
val popupPositionProvider = DropdownMenuPositionProvider(
offset,
density
) { parentBounds, menuBounds ->
transformOriginState.value = calculateTransformOrigin(parentBounds, menuBounds)
}