Improved Text.updateSize() method