From 090e79fcd825af7843fb440bcf4439fd178d5dc0 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sat, 11 Oct 2008 15:10:18 +0000 Subject: [PATCH] Refill the completions list on show() to cover some FF glitches --- content/ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/ui.js b/content/ui.js index 1027cd79..19997b66 100644 --- a/content/ui.js +++ b/content/ui.js @@ -1298,7 +1298,7 @@ liberator.ItemList = function (id) //{{{ function fill(offset) { 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; startIndex = offset; @@ -1325,6 +1325,7 @@ liberator.ItemList = function (id) //{{{ return; } + // do a full refill of the list: XML.ignoreWhitespace = true; @@ -1368,6 +1369,7 @@ liberator.ItemList = function (id) //{{{ { minHeight = 0; autoSize(); + fill(startIndex); } container.collapsed = false; },