[Pkg-mozext-commits] [tabmixplus] 105/147: Prevent pending tab width change while restoring when 'Tab width fits to tab title' enables

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:42 UTC 2017


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 3943363e68b4c8dcbdc51d1dd5b8c329593b50df
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Jan 30 18:08:24 2017 +0200

    Prevent pending tab width change while restoring when 'Tab width fits to tab title' enables
---
 chrome/content/tabmix.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index 42795f6..8ef18e5 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -917,6 +917,11 @@ var TMP_eventListener = {
   onTabSelect: function TMP_EL_TabSelect(aEvent) {
     var tab = aEvent.target;
 
+    if (TabmixTabbar.hideMode != 2 && TabmixTabbar.widthFitTitle &&
+        !tab.hasAttribute("width") && tab.hasAttribute("pending")) {
+      tab.setAttribute("width", tab.getBoundingClientRect().width);
+    }
+
     // for ColorfulTabs 6.0+
     // ColorfulTabs traps TabSelect event after we do
     // we need to set standout class before we check for getTabRowNumber

-- 
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