[Pkg-mozext-commits] [tabmixplus] 41/51: Leftover from changeset f05bf7562cb7 - tabBar.getTabRowNumber
David Prévot
taffit at moszumanska.debian.org
Mon Feb 2 18:36:55 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 1564678af16ed0b6921737cd11217e9a1582ee2e
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Jan 19 22:05:50 2015 +0200
Leftover from changeset f05bf7562cb7 - tabBar.getTabRowNumber
---
chrome/content/tab/scrollbox.xml | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/chrome/content/tab/scrollbox.xml b/chrome/content/tab/scrollbox.xml
index 14d5084..5873099 100644
--- a/chrome/content/tab/scrollbox.xml
+++ b/chrome/content/tab/scrollbox.xml
@@ -359,7 +359,6 @@
if (this.orient == "vertical")
return;
- var tabBar = document.getBindingParent(this);
Tabmix.tabsUtils.adjustNewtabButtonvisibility();
let tabs = this._getScrollableElements();
if (!tabs.length)
@@ -372,6 +371,7 @@
// is on the next row
Tabmix.tabsUtils.disAllowNewtabbutton = false;
this.orient = "vertical";
+ let tabBar = document.getBindingParent(this);
Tabmix.setItem(tabBar, "multibar", true);
Tabmix.setItem("TabsToolbar", "multibar", true);
if (Tabmix.tabsUtils.updateVerticalTabStrip() == null)
@@ -400,11 +400,10 @@
this.firstVisibleRow = firstVisibleRow;
- let tabBar = document.getBindingParent(this);
///XXX check if we can set the margin with animation when we scroll
let end = Tabmix.ltr ? "right": "left";
let containerEnd = this.scrollClientRect[end];
- let top = Tabmix.tabsUtils.topTabY;
+ let topY = Tabmix.tabsUtils.topTabY;
let tabs = this._getScrollableElements();
let index, current = 0;
for (let i = 0; i < tabs.length; i++) {
@@ -413,7 +412,7 @@
tab.removeAttribute("tabmix-firstTabInRow");
continue;
}
- let row = tabBar.getTabRowNumber(tab, top);
+ let row = Tabmix.tabsUtils.getTabRowNumber(tab, topY);
if (row > current) {
current = row;
if (!tab.hasAttribute("tabmix-firstTabInRow"))
@@ -445,7 +444,7 @@
// if a smoothScroll is in progress call ensureElementIsVisible again
// the amountToScroll changed when we changed firstTabInRow
if (this._scrollTarget)
- this.ensureElementIsVisible(this._scrollTarget, true)
+ this.ensureElementIsVisible(this._scrollTarget, true);
]]></body>
</method>
--
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