AutoResizingTextEdit extracted from Nastro repository