Skip to content

Commit

Permalink
feature: allow textareas to expand horizontally
Browse files Browse the repository at this point in the history
  • Loading branch information
warpech committed May 18, 2012
1 parent a8c7303 commit 653c1e7
Show file tree
Hide file tree
Showing 2 changed files with 205 additions and 187 deletions.
10 changes: 8 additions & 2 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@

<h1>Textarea</h1>

<textarea></textarea>
<textarea id="edit1"></textarea>

<h1>Textarea with width &amp; height</h1>

<textarea id="edit2"></textarea>

<h1>Input</h1>

Expand All @@ -33,5 +37,7 @@ <h1>Input</h1>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="jquery.autoresize.js"></script>
<script>
$('*').autoResize({minHeight:100,minWidth:300});
$('textarea#edit1').autoResize({minHeight:100});
$('textarea#edit2').autoResize({minHeight:100, minWidth:200, maxWidth:400, extraSpace:0, animate: false});
$('input').autoResize({minWidth:300});
</script>
Loading

0 comments on commit 653c1e7

Please sign in to comment.