Hello everyone, I have encountered the same issue as this developer. In my design, I need the width of the ExposedDropdownMenu to be the same as the TextField, but since ExposedDropdownMenu does not have a place to set PopupProperties, its maximum width is limited. Do you have any suggestions on how to solve this issue? Thank you.
Kort
03/26/2023, 10:44 AM
My final solution was to copy the entire source code of ExposedDropdownMenuPopup, and in the createLayoutParams function, change the width from WindowManager.LayoutParams.WRAP_CONTENT to MATCH_PARENT, and add horizontal padding myself to solve the problem. I am sharing this solution for those who need it.