[Pkg-mozext-commits] [itsalltext] 134/459: fixed popup positioning in XP

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:14 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 031f625337e67204c1cb2dd2f69bc903953c2ba9
Author: docwhat at gerf.org <docwhat at gerf.org>
Date:   Tue Feb 13 12:26:59 2007 -0500

    fixed popup positioning in XP
---
 changelog.txt              | 1 +
 chrome/content/cacheobj.js | 7 +++----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/changelog.txt b/changelog.txt
index e237e61..92e5ad4 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -12,6 +12,7 @@ $*".
 
 ****** 0.4.2 ******
 * Stupid bugs fixed.
+* The popup positions right in XP.
 
 ****** 0.4.0 ******
 * Added API so that other extensions can have edit buttons!
diff --git a/chrome/content/cacheobj.js b/chrome/content/cacheobj.js
index 58a42aa..125f789 100644
--- a/chrome/content/cacheobj.js
+++ b/chrome/content/cacheobj.js
@@ -368,11 +368,10 @@ CacheObj.prototype.addGumDrop = function() {
         var use_context  = event.ctrlKey || event.altKey;
         var use_cutpaste = event.shiftKey;
         if (use_context) {
-            var w = document.getElementById("main-window");
-            ItsAllText.debug('mouse: use_context',event.screenX,event.screenY);
             var target = ItsAllText.rebuildOptionMenu(cache_object.uid);
-            target.showPopup(w, event.screenX, event.screenY,
-                             "popup", null, null);
+            target.showPopup(document.documentElement,
+                             event.screenX, event.screenY,
+                             "bottomleft", "topleft");
         } else if(use_cutpaste) {
             ItsAllText.debug('mouse: use_cutpaste');
         } else {

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