[Pkg-mozext-commits] [tabmixplus] 22/48: Follow up bug 1387701 - Simplify lineScrollAmount
David Prévot
taffit at moszumanska.debian.org
Sun Aug 20 03:14:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit c0bf0e260c855fee353d8f547a0b2cb74f2fed05
Author: onemen <tabmix.onemen at gmail.com>
Date: Sun Aug 6 22:48:07 2017 +0300
Follow up bug 1387701 - Simplify lineScrollAmount
---
chrome/content/tab/scrollbox.xml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/chrome/content/tab/scrollbox.xml b/chrome/content/tab/scrollbox.xml
index b3610ea..ac38588 100644
--- a/chrome/content/tab/scrollbox.xml
+++ b/chrome/content/tab/scrollbox.xml
@@ -275,7 +275,14 @@
).toCode();
}
- if (Tabmix.isVersion(530)) {
+ if (Tabmix.isVersion(570)) {
+ Tabmix.changeCode(this, "scrollbox.lineScrollAmount", {getter: true})._replace(
+ '{', `{
+ if (this.isMultiRow) {
+ return this.scrollSize / Tabmix.tabsUtils.lastTabRowNumber;
+ }`
+ ).defineProperty();
+ } else if (Tabmix.isVersion(530)) {
Tabmix.changeCode(this, "scrollbox.lineScrollAmount", {getter: true})._replace(
'totalWidth / elements.length',
'this.isMultiRow ? totalWidth / Tabmix.tabsUtils.lastTabRowNumber : $&'
--
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