I’m impressed that I found no reference for `Reloc...
# compose
n
I’m impressed that I found no reference for
RelocationRequester
here in the channel 😄 I have a
Column
with several
TextField
. When I tap on a
TextField
at the bottom of the screen, the keyboard is opened and I want that field be positioned just above the keyboard. I thought that
RelocationRequester
resolves this problem…
a
Maybe it is a bug. I noticed similar behaviour, but in my case it was happening only the first time I click on the field. If I close the keyboard and click on the field again, it is pushed fine
n
It’s not working for me at all when the keyboard is closed, then I tap on
TextField
. The keyboard is overlapping the
TextField
😞
This is what I mean…
Ok… if I add a delay (to wait keyboard opens), it works… Is there a more elegant solution?
d
oh, wait, it's caused by the missing delay like you've written above, I missed it. Focus change event is received, keyboard is shown, even
LocalWindowInsets.current.ime.isVisible == true
, but composition at this point hasn't been recomposed I guess. Adding
delay(300)
fixes this. I don't like relaying on arbitrary delay, will try to play with
onGloballyPositioned
modifier
👍 1