compose-markdown icon indicating copy to clipboard operation
compose-markdown copied to clipboard

onTextLayout access

Open TinaT2 opened this issue 1 year ago • 0 comments

MarkdownText does have onTextLayout: ((kotlin.Int) -> kotlin.Unit)? = COMPILED_CODE) But on Text compose, we have onTextLayout: (TextLayoutResult) -> Unit = {} which gives us some options like textLayoutResult.lineCount, textLayoutResult.getLineRight(chatRowData.lineCount - 1), textLayoutResult.size.width. How can we access those options?

TinaT2 avatar Nov 15 '23 12:11 TinaT2