https://kotlinlang.org logo
#compose-android
Title
# compose-android
v

Venthorus

02/21/2024, 6:33 PM
I have a HorizontalPager with pages that can contain a TextField. Upon fully reaching the page I automatically focus the TextField and open the soft keyboard. In the accompanist version and older versions of HorizontalPager everything worked as expected, however since updating to BoM 2024.02.00 from 2023.08.00 focussing the TextField forces the Pager to scroll horizontally so that the TextField (which is inside a Card with padding) starts at the left border of the Pager component.
So the page is now offset (you can see the left part of the page to the right) and that is not the desired behavior. This behavior seems to be new but doesn't seem to be intended in a Pager which should never be in an "offset" state when settled. Can I change this behavior or is this a bug?
z

Zach Klippenstein (he/him) [MOD]

02/22/2024, 3:31 PM
Can you please file a bug and attach this info plus a screen recording or screenshots?
v

Venthorus

02/22/2024, 10:38 PM
Here it is, with two screen recordings showing the difference: https://issuetracker.google.com/issues/326485610
thank you color 1
3 Views