// remove the truncated segment, ... and "show more"
if (shortTextToReplace != null)
{
shortTextToReplace.removeFromParent();
}
more.removeFromParent();
ellipsis.removeFromParent();
// render the rest of the content
contentRenderer.renderList(remainingSegments, textContainer, searchLinkBuilder);
}