Added auto-resize for textboxes.

Not perfect yet though.