When the `Text` beginning is `.` and `maxLines` is...
# compose
c
When the
Text
beginning is
.
and
maxLines
is
2
, it is inconsistent with the display effect of Android. Is this intentional? As you can see, Annex 1 is the effect displayed by Android (expected), and Annex 2 is Compose.
👀 1
When the first character is not
.
, the display will be correct, this is my code:
Copy code
Text(
    text = item.name,
    maxLines = 2,
    overflow = TextOverflow.Ellipsis,
    style = currentTypography.subtitle2
)
j
@Siyamed
s
looks like a StaticLayout issue where we depend on the platform. Please feel free to create a ticket bu tI have to say that it is not immediately actionable.
(StaticLayout or native text layout)