youssef hachicha
05/27/2024, 3:34 PMModifier
.wrapContentHeight()
and this modifier on the content
Modifier
.heightIn(min = minHeight)
.background(color = Color.Red)
.onSizeChanged {
with(density) {
val height = it.height.toDp()
if (height > minHeight) {
minHeight = height
}
}
},
for some reason the pager doesn't wrap around the content height and it takes the maximum size of its elements.
some suggest that I should give beyondBoundsPageCount = page.size, but that is not possible for me because I have +1000 pages