Fixed
Status Update
Comments
ma...@google.com <ma...@google.com>
ap...@google.com <ap...@google.com> #2
Hi,
I also see my text cut off when I set maxLines = 2
. Is it the same issue?
Box(
modifier =
Modifier.size(
width = 108dp,
height = 34dp,
),
contentAlignment = Alignment.Center,
) {
BasicText(
text = "text text text",
maxLines = 2,
autoSize = AutoSize.StepBased(minFontSize = 1.sp, maxFontSize = 13.sp, stepSize = 0.2.sp),
)
}
Description
I use a LazyColumnFor with expanding Contents. There are 4 collapsed Items, which will take up the entire screen when expanded. When all items are expanded and the user scrolls to the bottom of the screen, the items at the bottom could be expanded first. The expected (maybe intended) behaviour would be to automatically scroll up to fill the screen with items.
However LazyColumnFor does not automatically scroll up. It leaves some of the screen blank, which is (probably) due to the somewhat lazy measuring of the Layout.
(This behaviour (I think) can also cause issues, such as, when scrolled down, collapsing the topmost item (though I could not make this reproducible in the code sample below). This should be a known bug, but I do have a Stacktrace of it if necessary.)