https://kotlinlang.org logo
#compose
Title
# compose
o

orangy

06/16/2022, 2:27 PM
🐛 Looks like there is a bug in measuring annotated strings with indents. Given
ParagraphStyle(textIndent = TextIndent(0.sp, 12.sp))
and string
"sdkjfn\nskdjfn\n"
I get the result as in attached image. Expected:
Copy code
sdkjfn
  skdjfn
Looks like indents are not considered during measuring of overall size, and then when laying out it have to wrap line.
s

seb

06/16/2022, 3:12 PM
Probably best to report on issuetracker.google.com
o

orangy

06/16/2022, 3:56 PM
@seb sure, I normally do it after some time in case comments arise and it happens to be my fault, or I didn’t understand something. My threads are normally following this pattern • something is wrong or I don’t understand something • aha moment, when I realize either where the bug is, or if I was mistaken • issue in tracker 🙂
☝️ 1
s

seb

06/16/2022, 4:19 PM
Yeah looking at what you said seems like it's probably a text layout issue, not your fault 🙂
z

Zach Klippenstein (he/him) [MOD]

06/18/2022, 1:41 AM
Yea please file a bug
o

orangy

06/18/2022, 11:15 AM
9 Views