[Pkg-mozext-commits] [tabmixplus] 38/123: Multi row tab bar issue on Max - top rows hidden on resize.

David Prévot taffit at moszumanska.debian.org
Wed Sep 17 21:16:25 UTC 2014


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 9d0f422a0b48b08de6464cad715f9c108aa4480b
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Aug 25 00:04:55 2014 +0300

    Multi row tab bar issue on Max - top rows hidden on resize.
---
 chrome/content/tab/tab.js | 6 +++---
 chrome/content/tabmix.js  | 4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 4242b7b..b520dff 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -363,15 +363,15 @@ var TabmixTabbar = {
     let tabsBottom = document.getAnonymousElementByAttribute(tabBar, "class", "tabs-bottom");
     let tabsBottomHeight = tabsBottom && tabBar.getAttribute("classic") != "v3Linux" ? tabsBottom.boxObject.height : 0;
     let newTabbarHeight = newHeight + tabsBottomHeight;
-    if (TabmixSvc.isMac) {
-      document.getElementById("TabsToolbar").style.setProperty("height",newTabbarHeight + "px", "important");
+    let tabsToolbar = document.getElementById("TabsToolbar");
+    if (TabmixSvc.isMac && !Tabmix.isVersion(280)) {
+      tabsToolbar.style.setProperty("height",newTabbarHeight + "px", "important");
     }
     // override fixed height set by theme to .tabbrowser-tabs class
     if (tabBar.boxObject.height < newTabbarHeight || tabBar.style.getPropertyValue("height")) {
       tabBar.style.setProperty("max-height",newTabbarHeight + "px", "important");
       tabBar.style.setProperty("height",newTabbarHeight + "px", "important");
     }
-    let tabsToolbar = document.getElementById("TabsToolbar");
     if (tabsToolbar.boxObject.height < newTabbarHeight || tabsToolbar.style.getPropertyValue("height")) {
       tabsToolbar.style.setProperty("max-height",newTabbarHeight + "px", "important");
       tabsToolbar.style.setProperty("height",newTabbarHeight + "px", "important");
diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index d09ee36..1397b85 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -370,6 +370,10 @@ var TMP_eventListener = {
         'let verticalMargins = $&',
         {check: Tabmix._debugMode && Tabmix.isVersion(280)}
       )._replace(
+        'let tabAndMenuHeight = fullTabsHeight + fullMenuHeight;',
+        'fullTabsHeight = fullTabsHeight / TabmixTabbar.visibleRows;\n      $&',
+        {check: TabmixSvc.isMac && Tabmix.isVersion(280)}
+      )._replace(
         /(\})(\)?)$/,
         // when we get in and out of tabsintitlebar mode call updateScrollStatus
         'if (TabmixTabbar._enablePositionCheck && TabmixTabbar.getTabsPosition() != TabmixTabbar._tabsPosition)\

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