app/static: fix infinite loop in jquery-linedtextarea.js

In Edge and Firefox, elements report a zero height when hidden.

Fixes golang/go#17199

Change-Id: I29f01ba5aa159e1a87be35d96bb6d944909deb08
Reviewed-on: https://go-review.googlesource.com/33154
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/app/static/jquery-linedtextarea.js b/app/static/jquery-linedtextarea.js
index 2d82581..4431e95 100644
--- a/app/static/jquery-linedtextarea.js
+++ b/app/static/jquery-linedtextarea.js
@@ -12,7 +12,7 @@
 		 * the current system

 		 */

 		var fillOutLines = function(linesDiv, h, lineNo) {

-			while (linesDiv.height() <= h) {

+			while (linesDiv.height() < h) {

 				linesDiv.append("<div>" + lineNo + "</div>");

 				lineNo++;

 			}

@@ -47,4 +47,4 @@
 		});

 	};

 

-})(jQuery);
\ No newline at end of file
+})(jQuery);