1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 04:07:59 +01:00

Fix :runtime completion.

This commit is contained in:
Kris Maglione
2010-12-17 20:01:59 -05:00
parent 754d490a56
commit 8f4d26f9ac
11 changed files with 39 additions and 38 deletions

View File

@@ -9,7 +9,7 @@ function checkFragment() {
var frag = document.location.hash.substr(1);
var elem = document.getElementById(frag);
function action() {
window.content.scrollTo(0, window.content.scrollY + elem.getBoundingClientRect().top - 10); // 10px context
content.scrollTo(0, content.scrollY + elem.getBoundingClientRect().top - 10); // 10px context
}
if (elem) {
action();