fix wrong calculation of textwidget height