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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user