From ebd57ddaad0849c61b9cd5b413d61b9f8e3fa74b Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 18 Apr 2016 14:54:37 +0100 Subject: 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.) --- pages/help_dialog.coffee | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pages') 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() -- cgit v1.2.3