[Pkg-mozext-commits] [tabmixplus] 71/123: Make sure 'notoverflowing' attribute is up-to-date even when our code change tabstrip height before overflow/underflow events fired
David Prévot
taffit at moszumanska.debian.org
Wed Sep 17 21:16:28 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 8e6b91342e944672110edb467fa87a0f08cf8577
Author: onemen <tabmix.onemen at gmail.com>
Date: Wed Sep 3 08:36:20 2014 +0300
Make sure 'notoverflowing' attribute is up-to-date even when our code change tabstrip height before overflow/underflow events fired
---
chrome/content/tab/scrollbox.xml | 3 ++-
chrome/content/tab/tabbrowser_4.xml | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/chrome/content/tab/scrollbox.xml b/chrome/content/tab/scrollbox.xml
index 8ff0c3e..74a02ea 100644
--- a/chrome/content/tab/scrollbox.xml
+++ b/chrome/content/tab/scrollbox.xml
@@ -455,7 +455,8 @@
<parameter name="overflow"/>
<body><![CDATA[
// we get here after we update overflow from updateVerticalTabStrip
- if (this.orient == "horizontal")
+ if (this.orient == "horizontal" ||
+ this.hasAttribute("notoverflowing") == !overflow)
return;
Tabmix.setItem(this, "notoverflowing", !overflow || null);
diff --git a/chrome/content/tab/tabbrowser_4.xml b/chrome/content/tab/tabbrowser_4.xml
index 6d3a602..0c8b0c3 100644
--- a/chrome/content/tab/tabbrowser_4.xml
+++ b/chrome/content/tab/tabbrowser_4.xml
@@ -588,6 +588,7 @@
else
this.removeAttribute("overflow");
TabmixTabbar.showNewTabButtonOnSide(val, "right-side");
+ this.mTabstrip.updateOverflow(val);
}
return val;
]]></setter>
--
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