Resizing font size in textarea to fit height
<p>I'm trying to do something different than most 'resize' textarea plugins do.  I am not trying to resize the actual textarea, but rather the font size in the textarea so that all of the text fits.</p>

<p>I basically want an 'auto' font size for a textarea.  The problem lies in the fact that there are two different ways that the font needs to get 'smaller':</p>

<ol>
<li>User presses 'enter' and creates a line break</li>
<li>User enters more text than the width of the textarea, causing it to break down</li>
</ol>

<p>I've seen a few instances of plugins which I've modified that creates a cloned textarea or div with the same styles that you can try to measure the new 'height' and calculate a font size based on this, but it seems to always fail in Safari and Chrome, so I'm guessing the logic is a bit flawed.</p>

<p>Has anybody done this before or know of a plugin where it has been done?</p>
