mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 00:02:30 +02:00
Fix hints on help pages. Closes issue #141.
Update issue #141. It looks like we're actually quite a bit better at figuring out element box data than Firebug is. Aside from actually mispositioning the layout box, Firebug actually chokes on our pages and can't manage to remove the layout guides once it's inserted them. Score one for our hint system, I guess.
This commit is contained in:
1 parent
18d716c4af
commit
46b7a29fb7
1 file changed
+3
-2
@@ -325,9 +325,10 @@ function Hints() //{{{
|
||||
pageHints.push([elem, text, span, null, elem.style.backgroundColor, elem.style.color, showText]);
|
||||
}
|
||||
|
||||
if (doc.body)
|
||||
let body = doc.body || util.evaluateXPath(["body"], doc).snapshotItem(0);
|
||||
if (body)
|
||||
{
|
||||
doc.body.appendChild(fragment);
|
||||
body.appendChild(fragment);
|
||||
docs.push({ doc: doc, start: start, end: pageHints.length - 1 });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user