[Pkg-mozext-commits] [itsalltext] 153/459: * fixed (hopefully for the last time ^_^) the positioning of the gumdrop.
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit 3f434b8e876db28de03c38fad01453ec377deb10
Author: docwhat at gerf.org <docwhat at gerf.org>
Date: Thu Mar 1 12:29:55 2007 -0500
* fixed (hopefully for the last time ^_^) the positioning of the gumdrop.
---
chrome/content/cacheobj.js | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/chrome/content/cacheobj.js b/chrome/content/cacheobj.js
index 132fe7f..8f6f249 100644
--- a/chrome/content/cacheobj.js
+++ b/chrome/content/cacheobj.js
@@ -451,13 +451,16 @@ CacheObj.prototype.adjust = function() {
if (style.display != display) {
style.display = display;
}
-
+
/* Reposition the gumdrops incase the dom changed. */
- var pos = ItsAllText.getPageOffset(el);
- var left = (pos[0]+Math.max(1,el.offsetWidth-this.gumdrop_width))+'px';
- var top = (pos[1]+el.offsetHeight)+'px';
- if(style.left != left) { style.left = left; }
- if(style.top != top) { style.top = top; }
+ var left = el.offsetLeft+Math.max(1, el.offsetWidth-this.gumdrop_width);
+ var top = el.offsetTop+el.offsetHeight;
+ if(left && top) {
+ left = [left,'px'].join('');
+ top = [top,'px'].join('');
+ if(style.left != left) { style.left = left; }
+ if(style.top != top) { style.top = top; }
+ }
};
/**
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list