From 5a8000da930397e12a1dc9568ecab25c8aea7d38 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Tue, 30 Dec 2014 12:36:41 +0000 Subject: Vomnibar; completion list is initially hidden. --- pages/vomnibar.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/vomnibar.css b/pages/vomnibar.css index c4bc0008..2042a6c4 100644 --- a/pages/vomnibar.css +++ b/pages/vomnibar.css @@ -3,7 +3,7 @@ #vomnibar ol, #vomnibar ul { list-style: none; - display: block; + display: none; } #vomnibar { -- cgit v1.2.3 From ff7a66a205516a7efcce3be47f82a4c0dde504a6 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Tue, 30 Dec 2014 14:13:18 +0000 Subject: Explicitly fall back to hide Vomnibar completions --- pages/vomnibar.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee index 170f1b42..78c954cd 100644 --- a/pages/vomnibar.coffee +++ b/pages/vomnibar.coffee @@ -61,7 +61,7 @@ class VomnibarUI @reset() reset: -> - @completionList.style.display = "none" + @completionList.style.display = "" @input.value = "" @updateTimer = null @completions = [] @@ -151,7 +151,7 @@ class VomnibarUI populateUiWithCompletions: (completions) -> # update completion list with the new data @completionList.innerHTML = completions.map((completion) -> "
  • #{completion.html}
  • ").join("") - @completionList.style.display = if completions.length > 0 then "block" else "none" + @completionList.style.display = if completions.length > 0 then "block" else "" @selection = Math.min(Math.max(@initialSelectionValue, @selection), @completions.length - 1) @updateSelection() @@ -181,7 +181,7 @@ class VomnibarUI @input.addEventListener "input", @update @input.addEventListener "keydown", @onKeydown @completionList = @box.querySelector("ul") - @completionList.style.display = "none" + @completionList.style.display = "" window.addEventListener "focus", => @input.focus() -- cgit v1.2.3