[Pkg-mozext-commits] [tabmixplus] 02/26: Add call to updateVerticalTabStrip from onTabClose_updateTabBar when Classic theme restorer installed, underflow not always fires when Classic theme restorer installed
David Prévot
taffit at moszumanska.debian.org
Fri Mar 25 21:56:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 0.4.2.3pre.160319a1
in repository tabmixplus.
commit ea360e7ca003c73e97889f66ee955e0a33be1e20
Author: onemen <tabmix.onemen at gmail.com>
Date: Thu Mar 10 01:14:15 2016 +0200
Add call to updateVerticalTabStrip from onTabClose_updateTabBar when Classic theme restorer installed, underflow not always fires when Classic theme restorer installed
---
chrome/content/tabmix.js | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index a008a4c..ef86393 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -875,9 +875,17 @@ var TMP_eventListener = {
var tabBar = gBrowser.tabContainer;
function _updateTabstrip() {
- if (tabBar.getAttribute("multibar") == "true" &&
- Tabmix.tabsUtils.lastTabRowNumber < TabmixTabbar.visibleRows)
- Tabmix.tabsUtils.updateVerticalTabStrip();
+ // underflow not always fires when Classic theme restorer installed
+ let multibar = tabBar.getAttribute("multibar");
+ if (multibar) {
+ let lastTabRowNumber = Tabmix.tabsUtils.lastTabRowNumber;
+ if (multibar == "true" &&
+ lastTabRowNumber < TabmixTabbar.visibleRows ||
+ multibar == "scrollbar" && Tabmix.extensions.ctr &&
+ lastTabRowNumber <= Tabmix.prefs.getIntPref("tabBarMaxRow")) {
+ Tabmix.tabsUtils.updateVerticalTabStrip();
+ }
+ }
TabmixTabbar.updateBeforeAndAfter();
}
--
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