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:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user