aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-04-07 19:43:37 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2015-04-07 19:43:37 -0400
commitbae07cdbc5bfe1730d8bcf426ac0f0ebf1c327fe (patch)
tree642ff2d51c7abdfa76f7e13352e6fa9ed23526d7 /static
parent02db72ed0a6fc1d514e6323284df5e25bd8c6c6f (diff)
downloadfamille-flask-bae07cdbc5bfe1730d8bcf426ac0f0ebf1c327fe.tar.gz
+1 to account for the padding
Diffstat (limited to 'static')
-rw-r--r--static/js/famille.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/famille.js b/static/js/famille.js
index 9606d13..515afa2 100644
--- a/static/js/famille.js
+++ b/static/js/famille.js
@@ -31,7 +31,7 @@ $(document).ready(function(){
var heading = $(this).parents(".media-heading");
heading.siblings(".comment-content").hide();
var textarea = heading.siblings(".comment-source").find("textarea");
- var row_count = textarea.val().split("\n").length;
+ var row_count = textarea.val().split("\n").length + 1;
textarea.attr("rows", row_count);
heading.siblings(".comment-source").show();
});