I have a `HorizontalPager` containing `Card`s with...
# compose
l
I have a
HorizontalPager
containing `Card`s with
Text
. The text inside has varying number of lines. How can I adjust the height of all `Card`s to the highest one (with the longest text), so that the size doesn't jump while swiping?
c
Please use the search function of Slack. This question was asked like 100 times already 🙈
l
Oops, sorry, and thank you!
l
Hi @Lukasz Kalnik, not sure if I understand your problem correctly. In order to
adjust the height of all Cards to the highest one
, we need to measure the “real” high when they are visible in screen. I believe there are a few solutions out there, but let assume you have a
HorizontalPager
and there is only 1 item display 1 time only, we can use this option:
beyondBoundsPageCount
, it will tell
HorizontalPager
load more pages offscreen
thank you color 1