mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 19:12:26 +01:00
Refill the completions list on show() to cover some FF glitches
This commit is contained in:
@@ -1298,7 +1298,7 @@ liberator.ItemList = function (id) //{{{
|
|||||||
function fill(offset)
|
function fill(offset)
|
||||||
{
|
{
|
||||||
let diff = offset - startIndex;
|
let diff = offset - startIndex;
|
||||||
if (diff == 0 || offset < 0 || completions.length && offset >= completions.length)
|
if (/* diff == 0 ||*/ offset < 0 || completions.length && offset >= completions.length)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
startIndex = offset;
|
startIndex = offset;
|
||||||
@@ -1325,6 +1325,7 @@ liberator.ItemList = function (id) //{{{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// do a full refill of the list:
|
// do a full refill of the list:
|
||||||
|
|
||||||
XML.ignoreWhitespace = true;
|
XML.ignoreWhitespace = true;
|
||||||
@@ -1368,6 +1369,7 @@ liberator.ItemList = function (id) //{{{
|
|||||||
{
|
{
|
||||||
minHeight = 0;
|
minHeight = 0;
|
||||||
autoSize();
|
autoSize();
|
||||||
|
fill(startIndex);
|
||||||
}
|
}
|
||||||
container.collapsed = false;
|
container.collapsed = false;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user