Permalink
Browse files

update to 2.8.9.3

  • Loading branch information...
1 parent 681a098 commit d97d3627072ab3804a8fb892acf3246ba5cebe06 @emposha committed Nov 28, 2011
Showing with 7 additions and 6 deletions.
  1. +2 −0 README.md
  2. +3 −4 jquery.fcbkcomplete.js
  3. +2 −2 jquery.fcbkcomplete.min.js
View
@@ -67,6 +67,8 @@ Options
Changelog
---------
+ - 2.8.9.3 input auto expand fixed, font-size dependency added
+
- 2.8.9.2 Merge pull request #94 from mysmallidea, Merge pull request #98 from musketyr, firefox undefined name fixed (by xavierp)
- 2.8.9.1 new options added input_min_size, select_all_text. The input_min_size added by @meteozond and @Александр, and select_all_text option added by @musketyr. feed clear fix added
@@ -1,5 +1,5 @@
/**
- FCBKcomplete v2.8.9.2 is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
+ FCBKcomplete v2.8.9.3 is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
- Jquery version required: 1.6.x
*/
@@ -213,9 +213,8 @@
return false;
}
//auto expand input
- var newsize = input.val().length + 1;
- if (options.input_min_size > newsize) newsize = options.input_min_size;
- input.attr("size", newsize);
+ var newsize = (options.input_min_size > input.val().length) ? options.input_min_size : (input.val().length + 1);
+ input.attr("size", newsize).width(parseInt(input.css('font-size')) * newsize);
});
input.keyup( function(event) {
Oops, something went wrong.

0 comments on commit d97d362

Please sign in to comment.