https://kotlinlang.org logo
#compose
Title
# compose
b

bitkiller

09/08/2021, 1:04 PM
Copy code
Column
  TextField
  DropdownMenu (height set)
(X is 183 in my tests, haven't tested on other devices to see if that changes) If height <= X, ok, DropdownMenu shows up below the textfield. But if height >= X + 1, then it moves up covering the TextField.
c

Colton Idle

09/08/2021, 4:52 PM
What's the question?
b

bitkiller

09/08/2021, 7:23 PM
Sorry, I'd expected the DropdownMenu would keep growing down, anchored to the initial position. See, in the starting post I'm setting the height manually, but in the real case the Dropdown is used in an autocomplete with requiredHeightIn(max). The dropdown starts covering the TextField, and as the list is filtered by user input, it moves down to the expected place (below the TextView). Also, the TextField is far from the soft keyboard.
2 Views