[TextItem] Improve implicitSize.y computation