Permalink
Browse files

auto resize textarea to fill available space

  • Loading branch information...
1 parent 476b296 commit f385d66b93d6228035e8c5487ea43f59f660c181 @mythz committed May 24, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 server/default.htm
View
@@ -84,7 +84,7 @@ <h4 id="url"></h4>
<h5 id="len"></h5>
<!-- eating our own dogfood :) -->
-<script type="text/javascript" src="jquip.events.ajax.js"></script>
+<script type="text/javascript" src="jquip.events.css.ajax.js"></script>
<script type="text/javascript">
var plugins = [
@@ -131,6 +131,9 @@ <h5 id="len"></h5>
});
}
generate();
+
+$("textarea").height($(document).height() - 450);
+
</script>
<script type="text/javascript">

0 comments on commit f385d66

Please sign in to comment.