From 1e7158b3978e81a46ce64d771554a7c27bfa372f Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 4 Mar 2009 17:10:20 +1100 Subject: [PATCH] Fix accessing help topics on the current help page. Only those beneath the current page position were accessible. --- vimperator/locale/en-US/help.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimperator/locale/en-US/help.js b/vimperator/locale/en-US/help.js index ece4273f..27413a00 100644 --- a/vimperator/locale/en-US/help.js +++ b/vimperator/locale/en-US/help.js @@ -6,7 +6,7 @@ function checkFragment() return; let elem = document.evaluate('//*[@class="tag" and text()="' + frag + '"]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(0); if (elem) - window.content.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context + window.content.scrollTo(0, window.content.scrollY + elem.getBoundingClientRect().top - 10); // 10px context } document.addEventListener("load", checkFragment, true);