Skip to content

Commit

Permalink
Comitting version 1.6.2 (Opera max-height bug fix)
Browse files Browse the repository at this point in the history
git-svn-id: http://jquery-elastic.googlecode.com/svn/trunk@13 14aa3af0-b55e-11dd-a7db-b583d5cdf5c2
  • Loading branch information
jan.jarfalk committed Oct 14, 2009
1 parent c363b7e commit 0c6f174
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Demo - Email validation with regular expressions</title>
<title>Demo - Elastic</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<link href="dependencies/screen.css" type="text/css" rel="stylesheet" />
</head>
<body>

<div class="form">
<p>
<label>Fill the textarea to make it grow (max-height set to 215px)</label>
<label>Fill the textarea to make it grow</label>
<span class="w">
<textarea class="input">This textarea is going to grow when you fill it with text. Just type a few more words in it and you will see.</textarea>
</span>
</p>
</div>

<script src="dependencies/jquery-1.3.2.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.elastic-1.6.1.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.elastic-1.6.2.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
Expand Down
1 change: 0 additions & 1 deletion jquery.elastic-1.6.1.js

This file was deleted.

1 change: 1 addition & 0 deletions jquery.elastic-1.6.2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @version 1.6.1
* @requires Jquery 1.2.6+
* @author Jan Jarfalk jan.jarfalk@unwrongest.com
* @licens MIT License - http://www.opensource.org/licenses/mit-license.php
*/

(function(jQuery){
Expand Down Expand Up @@ -36,6 +37,9 @@
maxheight = parseInt($textarea.css('max-height'),10) || Number.MAX_VALUE,
goalheight = 0,
i = 0;

// Opera returns max-height of -1 if not set
if (maxheight < 0) { maxheight = Number.MAX_VALUE; }

// Append the twin to the DOM
// We are going to meassure the height of this, not the textarea.
Expand Down

0 comments on commit 0c6f174

Please sign in to comment.