aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2019-02-27 16:08:16 +0100
committerAlessio Vanni <vannilla@firemail.cc>2019-02-27 16:08:16 +0100
commit86b64fe69d299a69884ae36ace0b89e2844d5c78 (patch)
tree36916b83bdce2580e16b4768f6208470a755efe4
parent39170093af575d71a8909e665fbd3613ec9db8a9 (diff)
downloadematrix-86b64fe69d299a69884ae36ace0b89e2844d5c78.tar.lz
ematrix-86b64fe69d299a69884ae36ace0b89e2844d5c78.tar.xz
ematrix-86b64fe69d299a69884ae36ace0b89e2844d5c78.zip
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.
-rw-r--r--js/vapi-background.js3
1 files changed, 3 insertions, 0 deletions
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;
};