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

Fix NonText and completion scrolling

This commit is contained in:
Kris Maglione
2008-11-27 08:45:07 +00:00
parent 5aea24eb61
commit 0ada7c0ed8

View File

@@ -1359,8 +1359,10 @@ function ItemList(id) //{{{
<div key="completions"/> <div key="completions"/>
<div highlight="Completions"> <div highlight="Completions">
{ {
template.map(util.range(0, maxItems), function (i) template.map(util.range(0, maxItems * 2), function (i)
<ul><li highlight="CompTitle NonText">~</li></ul>) <span highlight="CompItem">
<li highlight="NonText">~</li>
</span>)
} }
</div> </div>
</div>, divNodes); </div>, divNodes);
@@ -1429,7 +1431,7 @@ function ItemList(id) //{{{
items.insertBefore(row, next); items.insertBefore(row, next);
} }
if (display) if (display)
delete row.style.display; row.style.display = "table-row";
else else
row.style.display = "none"; row.style.display = "none";
} }
@@ -1439,7 +1441,7 @@ function ItemList(id) //{{{
divNodes.noCompletions.style.display = (off > 0) ? "none" : "block"; divNodes.noCompletions.style.display = (off > 0) ? "none" : "block";
completionElements = buffer.evaluateXPath("//*[@liberator:highlight='CompItem' and not(contains(@style, 'none'))]", doc); completionElements = buffer.evaluateXPath("//xhtml:div[@liberator:highlight='CompItem' and not(contains(@style, 'none'))]", doc);
autoSize(); autoSize();
return true; return true;