From 86b64fe69d299a69884ae36ace0b89e2844d5c78 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Wed, 27 Feb 2019 16:08:16 +0100 Subject: Improve the double tooltip fix This way, the toolbar button can display its tooltip, making it coherent with other toolbar buttons, without covering the popup panel tooltips. --- js/vapi-background.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/vapi-background.js') diff --git a/js/vapi-background.js b/js/vapi-background.js index b871b7e..55ce363 100644 --- a/js/vapi-background.js +++ b/js/vapi-background.js @@ -2396,6 +2396,7 @@ vAPI.toolbarButton = { toolbarButton.setAttribute('removable', 'true'); toolbarButton.setAttribute('class', 'toolbarbutton-1 chromeclass-toolbar-additional'); toolbarButton.setAttribute('label', tbb.label); + toolbarButton.setAttribute('tooltiptext', tbb.tooltiptext); var toolbarButtonPanel = document.createElement('panel'); // NOTE: Setting level to parent breaks the popup for PaleMoon under @@ -2406,6 +2407,8 @@ vAPI.toolbarButton = { toolbarButtonPanel.addEventListener('popuphiding', tbb.onViewHiding); toolbarButton.appendChild(toolbarButtonPanel); + toolbarButtonPanel.setAttribute('tooltiptext', ''); + return toolbarButton; }; -- cgit v1.2.3