Hello! I’m using `accompanist.pager.HorizontalPage...
# compose
m
Hello! I’m using
accompanist.pager.HorizontalPager
and for some reason my textviews are always square when the string is longer than one line… any ideas why?
Copy code
HorizontalPager(
    count = 2,
    state = pagerState,
    verticalAlignment = <http://Alignment.Top|Alignment.Top>
) { i ->
    when (i) {
        0 -> Text(
                "A string A string A string A string A string A string A string", 
                modifier = Modifier.wrapContentHeight(), //makes no difference
            )
        1 -> SomethingElse()
    }
}
I also tried wrapping in a Row with wrapContentHeight but it didn’t make a difference.
Very strange. I found setting
Copy code
lineHeight = 16.sp,
on the
Text
composable fixes it.