mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Fixed background and border drawing in ellipsis when text not ellipsize
commit_hash:0100f15837fbf9d918f2f1281884b4470761ee9c
This commit is contained in:
+3
@@ -75,6 +75,9 @@ internal class DivTextRangesBackgroundHelper(
|
||||
private fun applySpan(span: DivBackgroundSpan, canvas: Canvas, text: Spanned, layout: Layout) {
|
||||
val spanStart = text.getSpanStart(span)
|
||||
val spanEnd = text.getSpanEnd(span)
|
||||
|
||||
if (spanStart < 0 || spanEnd < 0 || spanStart >= spanEnd) return
|
||||
|
||||
val startLine = layout.getLineForOffset(spanStart)
|
||||
val endLine = layout.getLineForOffset(spanEnd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user