Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kuwabarahiroshi committed May 16, 2012
1 parent 357a963 commit 5bb3e09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ jquery-autogrow-textarea

A jQuery plugin to make textarea be resized automatically to fit its contents.

== DEMO ==
** DEMO **
http://jsfiddle.net/kuwabarahiroshi/7CsFR/

== Why I wrote this plugin ==
** Why I wrote this plugin **
Advanced plugin on this feature is found here: http://www.technoreply.com/autogrow-textarea-plugin-version-2-0/
However, the plugin is bad at multibyte character.
I, as a Japanese, thought it could be enhanced with using `setInterval()` and `.scrollHeight` to detect textarea height.

== Misc ==
** Misc **
IE6-8 has a bug on `.scrollHeight` as described here: http://www.atalasoft.com/cs/blogs/davidcilley/files/IETextAreaBug.html
This plugin copes with this bug.

Padding height of a textarea is included in `.scrollHeight` on IE, Webkit, Opera, but excluded on FireFox.
This plugin is perfectly cross-browser compatible.
Compatibility is realized with feature detection not with browser detection.

== Tested ==
** Tested **
Win XP: IE8
Win Vista: IE9, Opera, Firefox
Mac OSX: Chrome, Firefox, Safari
Expand Down

0 comments on commit 5bb3e09

Please sign in to comment.