[Pkg-mozext-commits] [tabmixplus] 131/147: Multirow tab bar incompatibility issue with Toolbar Position Changer add-on

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:45 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 b117142351252d9d760f0c56de6ceedd77729873
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Apr 16 00:05:00 2017 +0300

    Multirow tab bar incompatibility issue with Toolbar Position Changer add-on
---
 chrome/content/tab/tab.js | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 06fe42d..5d4e201 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -605,9 +605,13 @@ Tabmix.tabsUtils = {
 
   get tabstripInnerbox() {
     delete this.tabstripInnerbox;
-    let elm = document.getAnonymousElementByAttribute(
-      this.tabBar.mTabstrip._scrollbox, "class", "box-inherit scrollbox-innerbox");
-    return (this.tabstripInnerbox = elm);
+    return (this.tabstripInnerbox = this.getInnerbox());
+  },
+
+  getInnerbox() {
+    return document.getAnonymousElementByAttribute(
+      this.tabBar.mTabstrip._scrollbox, "class", "box-inherit scrollbox-innerbox"
+    );
   },
 
   get inDOMFullscreen() {
@@ -757,6 +761,12 @@ Tabmix.tabsUtils = {
   },
 
   initializeTabmixUI() {
+    // tabstripInnerbox is not valid after Toolbar Position Changer add-on
+    // moves the toolbar
+    const resetSettings = this.topTabY == 0;
+    delete this.tabstripInnerbox;
+    this.tabstripInnerbox = this.getInnerbox();
+
     // https://addons.mozilla.org/EN-US/firefox/addon/vertical-tabs/
     // verticalTabs 0.9.1+ is restartless.
     let isVertical = Tabmix.extensions.verticalTabs;
@@ -786,7 +796,7 @@ Tabmix.tabsUtils = {
     // fix incompatibility with Personal Titlebar extension
     // the extensions trigger tabbar binding reset on toolbars customize
     // we need to init our ui settings from here and again after customization
-    if (Tabmix.navToolbox.customizeStarted) {
+    if (Tabmix.navToolbox.customizeStarted || resetSettings) {
       TabmixTabbar.visibleRows = 1;
       TabmixTabbar.updateSettings(false);
       Tabmix.navToolbox.resetUI = 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