I have an auto-sizing text composable that will al...
# compose
j
I have an auto-sizing text composable that will always have a max height equal to its initial size, since the text only shrinks to accommodate longer length. Is there a way to capture the text's initial height, and wrap the text composable inside a box equal to that initial height? This way, if the text itself shrinks, the container won't also shrink and shift the other content above and below it?
a
Can try with
Modifier.onSizeChanged
and capture the initial value in a state