1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 20:05:46 +01:00

Fix some bugs.

This commit is contained in:
Kris Maglione
2011-01-05 18:54:17 -05:00
parent 663a398112
commit 841459e507
3 changed files with 21 additions and 10 deletions

View File

@@ -300,7 +300,7 @@ var Hints = Module("hints", {
util.computedStyle(fragment).height; // Force application of binding.
let container = doc.getAnonymousElementByAttribute(fragment, "anonid", "hints");
let baseNodeAbsolute = util.xmlToDom(<span highlight="Hint"/>, doc);
let baseNodeAbsolute = util.xmlToDom(<span highlight="Hint" style="display: none"/>, doc);
let mode = this._hintMode;
let res = util.evaluateXPath(mode.xpath, doc, null, true);
@@ -432,6 +432,7 @@ var Hints = Module("hints", {
continue;
hint.imgSpan = util.xmlToDom(<span highlight="Hint" dactyl:hl="HintImage" xmlns:dactyl={NS}/>, doc);
hint.imgSpan.style.display = "none";
hint.imgSpan.style.left = (rect.left + offsetX) + "px";
hint.imgSpan.style.top = (rect.top + offsetY) + "px";
hint.imgSpan.style.width = (rect.right - rect.left) + "px";