aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-04-18 14:54:37 +0100
committerStephen Blott2016-04-18 14:54:40 +0100
commitebd57ddaad0849c61b9cd5b413d61b9f8e3fa74b (patch)
tree74c3a629951eba5cac60686d14fa614b504bec69
parenta5a61567730f3055eefdf84435a80253d5cb1cc3 (diff)
downloadvimium-ebd57ddaad0849c61b9cd5b413d61b9f8e3fa74b.tar.bz2
Ensure help dialog is scrollable.
When we open the help dialog, scroll it, close it then open it again, the scroller loses track of the scrollable element. This is because the scroller is still referenceing the old scrollable content as its "activated element". Here, we click the dialog element to get the scroller back in sync. (Note: This is a more general problem which we need to look into.)
-rw-r--r--pages/help_dialog.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/help_dialog.coffee b/pages/help_dialog.coffee
index 373aa94a..401c3222 100644
--- a/pages/help_dialog.coffee
+++ b/pages/help_dialog.coffee
@@ -42,6 +42,9 @@ HelpDialog =
chrome.runtime.sendMessage handler: "copyToClipboard", data: commandName
HUD.showForDuration("Yanked #{commandName}.", 2000)
+ # "Click" the dialog element (so that it becomes scrollable).
+ DomUtils.simulateClick @dialogElement
+
hide: -> UIComponentServer.hide()
toggle: -> @hide()