changeset 22:5c40b7b7e6c7

Added auto-scrolling so that new text doesn't go out of view.
author Atul Varma <varmaa@toolness.com>
date Sun, 11 May 2008 18:38:45 -0700
parents cfb61200e181
children 45cd43896709
files trivial-zui.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/trivial-zui.js	Sun May 11 18:19:08 2008 -0700
+++ b/trivial-zui.js	Sun May 11 18:38:45 2008 -0700
@@ -68,6 +68,7 @@
             output = output.replace('\n', '<br/>', 'g');
             if (self._activeWindow == 0) {
                 $("#content").append(output);
+                window.scroll(0, document.body.scrollHeight);
             }
         }
     };