[Pkg-mozext-commits] [tabmixplus] 12/73: Follow up changeset 837ad81a0bfb, call TabsInTitlebar.updateAppearance every time we set new height for the first time

David Prévot taffit at moszumanska.debian.org
Mon May 9 02:30:50 UTC 2016


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit f4c09a5b5630abdfe8991cefb349c93095aa996a
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Mar 27 07:03:08 2016 +0300

    Follow up changeset 837ad81a0bfb, call TabsInTitlebar.updateAppearance every time we set new height for the first time
---
 chrome/content/tab/tab.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index e1cd0e0..cd2a7f5 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -254,7 +254,7 @@ var TabmixTabbar = {
       return;
     }
 
-    var newHeight, fillRowsHeights;
+    var newHeight, fillRowsHeights, updateAppearanceOnce;
     if (typeof (this._heights[tabsPosition]) == "undefined") {
       this._heights[tabsPosition] = {};
       fillRowsHeights = true;
@@ -262,6 +262,7 @@ var TabmixTabbar = {
     if (aRows in this._heights[tabsPosition])
       newHeight = this._heights[tabsPosition][aRows];
     else {
+      updateAppearanceOnce = true;
       if (Tabmix.tabsUtils.tabstripInnerbox) {
         let height = Tabmix.tabsUtils.tabstripInnerbox.getBoundingClientRect().height;
         if (tabBar.getAttribute("multibar") == "scrollbar") {
@@ -292,8 +293,7 @@ var TabmixTabbar = {
       this.setHeightByPixels(newHeight);
 
     // fix multi-row background on windows XP
-    if (this.updateAppearanceOnce) {
-      this.updateAppearanceOnce = false;
+    if (this.updateAppearanceOnce && updateAppearanceOnce) {
       TabsInTitlebar.updateAppearance(true);
     }
   },

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