1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 16:47:59 +01:00

Fix REPL scroll offset calculation.

This commit is contained in:
Kris Maglione
2011-02-17 07:27:21 -05:00
parent e17b99c9c6
commit c8cc18b440
2 changed files with 8 additions and 4 deletions

View File

@@ -739,8 +739,8 @@ var JavaScript = Module("javascript", {
<div highlight="REPL-P" key="p">{xml}</div>
</e4x>.elements(), this.document, nodes));
this.rootNode.scrollTop = nodes.e.getBoundingClientRect().top
- this.rootNode.getBoundingClientRect().top;
this.rootNode.scrollTop += nodes.e.getBoundingClientRect().top
- this.rootNode.getBoundingClientRect().top;
},
count: 0,
@@ -788,6 +788,7 @@ var JavaScript = Module("javascript", {
this.updatePrompt();
modules.mow.echo(this.repl);
this.widgets.message = null;
open.superapply(this, arguments);
},