1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 03:57:59 +01:00

* code refactoring, mostly methods from hints.js -> buffer.js

* ;s and :pageinfo try to propose filenames relative to the current directory now
This commit is contained in:
Martin Stubenschrott
2008-01-05 21:14:27 +00:00
parent 177b8d3b49
commit 17fafa17dd
6 changed files with 134 additions and 119 deletions

View File

@@ -301,7 +301,7 @@ vimperator.Help = function(section)
{
vimperator.open("chrome://vimperator/locale/" + file);
setTimeout(function() {
var elem = vimperator.buffer.element('@class="tag" and text()="' + tag + '"');
var elem = vimperator.buffer.getElement('@class="tag" and text()="' + tag + '"');
if (elem)
window.content.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context
}, 100);