[Pkg-mozext-commits] [tabmixplus] 48/123: When user show new tab button after last tab, we show it on the side only on multi-row place it immediately after gBrowser.tabContainer
David Prévot
taffit at moszumanska.debian.org
Wed Sep 17 21:16:26 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 f545308df809b2f0dc1c7909f6f8eb6fa8287182
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Aug 26 07:42:34 2014 +0300
When user show new tab button after last tab, we show it on the side only
on multi-row place it immediately after gBrowser.tabContainer
---
chrome/content/tab/tab.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 8102198..8b5389a 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -1373,7 +1373,10 @@ var gTMPprefObserver = {
}
}
else {
- if (buttonIndex < tabsIndex) {
+ // When user show the button after last tab, we show it on the side
+ // only on multi-row. place it immediately after gBrowser.tabContainer
+ if (aPosition == 2 && buttonIndex != tabsIndex + 1 ||
+ buttonIndex < tabsIndex) {
let before = gBrowser.tabContainer.nextSibling;
if ($("tabmixScrollBox")) {
before = before.nextSibling;
--
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