[Pkg-mozext-commits] [tabmixplus] 07/15: With Walnut theme we get wrong height from Tabmix.getButtonsHeight on Firefox 36

David Prévot taffit at moszumanska.debian.org
Wed Mar 18 19:05:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 1d3e25f01954b18c63aa005f4f34f291b5b4157e
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Mar 9 22:05:31 2015 +0200

    With Walnut theme we get wrong height from Tabmix.getButtonsHeight on Firefox 36
---
 chrome/content/tab/tab.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 233099e..36e7adb 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -1649,6 +1649,12 @@ var gTMPprefObserver = {
   },
 
   miscellaneousRules: function TMP_PO_miscellaneousRules() {
+    // with Walnut theme we get wrong height on Firefox 36
+    if (Tabmix._buttonsHeight > 50) {
+      let skin = Services.prefs.getCharPref("general.skins.selectedSkin");
+      Tabmix._buttonsHeight = skin == "walnut" ? 19 : 23;
+    }
+
     /* tab-icon-overlay added by Bug 1112304, Firefox 38+ */
     if (!Tabmix.isVersion(380))
       this.insertRule('.tab-icon-overlay {display: none;}');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list