[Pkg-mozext-commits] [tabmixplus] 03/15: Update for changeset 6a46101dcb85 for the case getBoundingClientRect bottom return fraction value
David Prévot
taffit at moszumanska.debian.org
Sat Feb 21 22:30:04 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 f18d58ead751c4334f5a626ec1aaa835ab2c901d
Author: onemen <tabmix.onemen at gmail.com>
Date: Thu Jan 29 23:22:25 2015 +0200
Update for changeset 6a46101dcb85 for the case getBoundingClientRect bottom return fraction value
---
chrome/content/minit/minit.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 903d954..93fecd0 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -695,12 +695,12 @@ var TMP_tabDNDObserver = {
if (TabmixTabbar.position == 1) {
newMarginY = tabRect.bottom - ind.parentNode.getBoundingClientRect().bottom;
let addOnBar = document.getElementById("addon-bar");
- fixMargin = newMarginY === 0 &&
- (Tabmix.isVersion(280) || addOnBar && addOnBar.collapsed);
+ fixMargin = (Tabmix.isVersion(280) || addOnBar && addOnBar.collapsed) &&
+ (Math.abs(newMarginY) < 0.5);
}
else {
newMarginY = tabRect.bottom - rect.bottom;
- fixMargin = newMarginY === 0 && this.onLastToolbar;
+ fixMargin = this.onLastToolbar && (Math.abs(newMarginY) < 0.5);
}
// make indicator visible
if (fixMargin)
--
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