[Pkg-mozext-commits] [tabmixplus] 91/123: Follow up changeset 178995038b3b, make sure 'new-tab-button' is in the right place.

David Prévot taffit at moszumanska.debian.org
Wed Sep 17 21:16:30 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 7a73b6015ec8f304510749b591d281a8c3f78e47
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Sep 9 18:46:53 2014 +0300

    Follow up changeset 178995038b3b, make sure 'new-tab-button' is in the right place.
---
 chrome/content/tab/tab.js | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index b729f8b..83cc630 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -1372,12 +1372,10 @@ var gTMPprefObserver = {
         let buttonPosition = CustomizableUI.getPlacementOfWidget("new-tab-button").position;
         let tabsPosition = CustomizableUI.getPlacementOfWidget("tabbrowser-tabs").position;
         let changePosition = (aPosition == 0 && buttonPosition > tabsPosition) ||
-                          (aPosition == 2 && buttonPosition != tabsPosition + 1 ||
-                           buttonPosition < tabsPosition)
+                             (aPosition == 1 && buttonPosition < tabsPosition) ||
+                             (aPosition == 2 && buttonPosition != tabsPosition + 1);
         if (changePosition) {
-          let newPosition = aPosition == 0 ? 0 : 1;
-          if (newPosition > buttonPosition)
-            newPosition++;
+          let newPosition = aPosition == 0 ? -1 : tabsPosition + 1;
           CustomizableUI.moveWidgetWithinArea("new-tab-button", newPosition);
         }
         return;

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