]> git.pond.sub.org Git - eow/commitdiff
scrollMaxY is not defined in Chrome
authorGerd Flaig <gefla@rose.pond.sub.org>
Sun, 9 May 2010 22:03:49 +0000 (00:03 +0200)
committerGerd Flaig <gefla@rose.pond.sub.org>
Sun, 9 May 2010 22:03:49 +0000 (00:03 +0200)
static/eow.js

index 631894f0b70ff92059ca0daa4dddb03d8bb3c4e2..aeac0049fede792242fe03a92f5aee05ed7856d2 100644 (file)
@@ -80,7 +80,7 @@ function inputfield_keyup(e) {
   if (e.keyCode == 13) { // Enter
     eowOut($("#prompt").text() + e.target.value);
     submit_cmdline(e.target.value);
-    window.scrollTo(0, window.scrollMaxY);
+    window.scrollTo(0, window.outerHeight);
     e.target.value = "";
   }
 }