Port of HPGrowingTextView