forked from: TextField_autoSize

