[Pkg-mozext-commits] [tabmixplus] 11/23: With tabs set to bottom of browser, top of browser acts like title bar when double clicked (Bug 1248225)

David Prévot taffit at moszumanska.debian.org
Wed Feb 17 18:34:00 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 74b3d59717d1391929497466a355b32f10ea4214
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Feb 14 18:46:13 2016 +0200

    With tabs set to bottom of browser, top of browser acts like title bar when double clicked (Bug 1248225)
---
 chrome/content/overlay/browsr.css |  1 +
 chrome/content/tab/tab.js         | 12 ++++++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/chrome/content/overlay/browsr.css b/chrome/content/overlay/browsr.css
index 8c6dbf2..b944f4f 100644
--- a/chrome/content/overlay/browsr.css
+++ b/chrome/content/overlay/browsr.css
@@ -328,6 +328,7 @@ so display: none !important; does not hide the button */
   display: none;
 }
 
+#main-window[tabsintitlebar][tabmix-tabbaronbottom] .tabbrowser-tabbox,
 #main-window[tabsintitlebar] #TabsToolbar[tabmix-disallow-drag] {
   -moz-window-dragging: no-drag;
 }
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 54c304c..af2076f 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -2109,7 +2109,11 @@ var gTMPprefObserver = {
           let newPosition = aPosition === 0 ? tabsPosition : after + 1;
           let doChange = function() {
             CustomizableUI.moveWidgetWithinArea("new-tab-button", newPosition);
-            Tabmix.setItem(tabsToolbar, "tabbaronbottom", TabmixTabbar.position == 1 || null);
+            let onbottom = TabmixTabbar.position == 1 || null;
+            Tabmix.setItem(tabsToolbar, "tabbaronbottom", onbottom);
+            if (Tabmix.isVersion(470)) {
+              Tabmix.setItem("main-window", "tabmix-tabbaronbottom", onbottom);
+            }
           };
           if (TabmixTabbar.position == 1)
             setTimeout(() => doChange(), 15);
@@ -2197,7 +2201,11 @@ var gTMPprefObserver = {
     var tabsToolbar = document.getElementById("TabsToolbar");
     // setting tabbaronbottom attribute trigger updatePosition in our
     // scrollbox.xml\toolbar binding
-    Tabmix.setItem(tabsToolbar, "tabbaronbottom", TabmixTabbar.position == 1 || null);
+    let onbottom = TabmixTabbar.position == 1 || null;
+    Tabmix.setItem(tabsToolbar, "tabbaronbottom", onbottom);
+    if (Tabmix.isVersion(470)) {
+      Tabmix.setItem("main-window", "tabmix-tabbaronbottom", onbottom);
+    }
 
     // TabsOnTop removed by bug 755593
     if (window.TabsOnTop)

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