1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 03:54:13 +01:00
This commit is contained in:
Kris Maglione
2008-12-17 23:16:20 -05:00
parent 5fffe79206
commit cdcfb68e3b
2 changed files with 25 additions and 11 deletions

View File

@@ -952,7 +952,7 @@ const liberator = (function () //{{{
setTimeout(function () {
let elem = buffer.evaluateXPath('//*[@class="tag" and text()="' + tag + '"]').snapshotItem(0);
if (elem)
window.content.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context
buffer.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context
else
liberator.dump('no element: ' + '@class="tag" and text()="' + tag + '"\n' );
}, 500);