Reduce and correct the calls of text.updateSize()