1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 00:27:57 +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 highlight="Completions">
{
template.map(util.range(0, maxItems), function (i)
<ul><li highlight="CompTitle NonText">~</li></ul>)
template.map(util.range(0, maxItems * 2), function (i)
<span highlight="CompItem">
<li highlight="NonText">~</li>
</span>)
}
</div>
</div>, divNodes);
@@ -1429,7 +1431,7 @@ function ItemList(id) //{{{
items.insertBefore(row, next);
}
if (display)
delete row.style.display;
row.style.display = "table-row";
else
row.style.display = "none";
}
@@ -1439,7 +1441,7 @@ function ItemList(id) //{{{
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();
return true;