[Pkg-mozext-commits] [tabmixplus] 67/107: When maximizing window with multi-row with scroll buttons, updateVerticalTabStrip need some time before it can calculate correctly the number of rows
    David Prévot 
    taffit at moszumanska.debian.org
       
    Tue Dec 29 19:02:51 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 30030367900be60a1d4e3b72fc001c4cbdfdc84e
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Nov 11 23:27:20 2015 +0200
    When maximizing window with multi-row with scroll buttons, updateVerticalTabStrip need some time before it can calculate correctly the number of rows
---
 chrome/content/tab/tab.js | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 0d3eeef..a59be34 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -343,15 +343,15 @@ var TabmixTabbar = {
     var tabBar = gBrowser.tabContainer;
     if (this.isMultiRow) {
       this.setFirstTabInRow();
-      if (tabBar.mTabstrip.orient != "vertical")
+      if (tabBar.mTabstrip.orient != "vertical") {
         tabBar.mTabstrip._enterVerticalMode();
-      else
-        Tabmix.tabsUtils.updateVerticalTabStrip();
-
-      if (this.position == 1)
-        setTimeout(() => Tabmix.tabsUtils.updateVerticalTabStrip(), 0);
-
-      this.updateBeforeAndAfter();
+        this.updateBeforeAndAfter();
+      } else {
+        setTimeout(() => {
+          Tabmix.tabsUtils.updateVerticalTabStrip();
+          this.updateBeforeAndAfter();
+        }, 0);
+      }
     }
     /// maybe we cad add this to the popupshing / or as css rule ?
     Tabmix.setItem("alltabs-popup", "position",
-- 
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