Fix for textbox autogrowing bug (fixes #384).