Adjust the size when a textarea is inserted into the DOM

Use the MutationObserver DOMNodeInsertedIntoDocument event to detect
when the element is inserted into the DOM. This allows the size to be
accurately adjusted at first opportunity to do so.

Change-Id: I3fd1e46459215773b0df137a603d788a81bbd8fb