- Handled case where texarea has no line-height. - Added 'word-wrap' style to shadow textarea; height calculation for long lines of text with no spaces behaves better. - Added detection for enter character in keydown event which inserts a '<br />' to the shadow html. This means no more flicker on enter key presses. - Added a '...' to the end of shadow when noFlickerPad is zero; this causes an extra line to appear when getting close to causing a wrap. No more flicker on text wrap.
1. Account for font weight. 2. Fix width calculation. 3. Exactly calculate extra height required to prevent flickering. Enhancements (keep whatever you like): 4. Support window fluid width (update on window resize). 5. Make extra height for flicker prevention optional (via class "autogrow-short"). 6. Use closure to retain object reference instead of using Function.apply to set context. This is simpler and more efficient because it eliminates $(this) in update(). 7. Move return statement to make code shorter.
…ort. Small doc changes too.
…umeric character that was appended to the end of the text.