Fix small text collapse bug.

This commit is contained in:
Martín Lucas Golini
2026-05-14 01:43:27 -03:00
parent 359dc8f157
commit 1b34eb7b2f

View File

@@ -1017,6 +1017,9 @@ void UIRichText::rebuildRichText( UILayout* container, RichText& richText, Intri
richText.addSpan( "", span->getFontStyleConfig(), rightOnly, padRightOnly );
}
if ( shouldCollapse && span->isInlineBlock() )
lastSpanEndsWithSpace = true;
handled = true;
}