]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Position the textarea at top:0
authorDaniel Imms <daimms@microsoft.com>
Mon, 5 Dec 2016 19:19:35 +0000 (11:19 -0800)
committerDaniel Imms <daimms@microsoft.com>
Mon, 5 Dec 2016 19:19:36 +0000 (11:19 -0800)
This prevents the browser from scrolling to the top of the page if the terminal
can be scrolled out of view.

Fixes #357

src/xterm.css

index b30d7b493f11b42b618dc1d3109f0b32c9414a78..4877f86e3a8280bdbd89b9889fbc32c1a548aed2 100644 (file)
@@ -61,7 +61,7 @@
     position: absolute;
     opacity: 0;
     left: -9999em;
-    top: -9999em;
+    top: 0;
     width: 0;
     height: 0;
     z-index: -10;