1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 17:12:28 +01:00

Don't use a popuppanel for the bell on Gecko<2 either.

This commit is contained in:
Kris Maglione
2010-11-09 17:01:57 -05:00
parent 75b5522073
commit 37057099f7
4 changed files with 7 additions and 15 deletions

View File

@@ -146,16 +146,8 @@ const Dactyl = Module("dactyl", {
util.timeout(function () { popup.parentNode.selectedPanel = restore; }, 20);
}
else {
popup = document.getElementById("dactyl-popup-bell");
let win = config.visualbellWindow;
let rect = win.getBoundingClientRect();
let width = rect.right - rect.left;
let height = rect.bottom - rect.top;
// NOTE: this doesn't seem to work in FF3 with full box dimensions
popup.openPopup(win, "overlap", 1, 1, false, false);
popup.sizeTo(width - 2, height - 2);
util.timeout(function () { popup.hidePopup(); }, 20);
highlight.highlightNode(document.documentElement, "Bell");
util.timeout(function () { document.documentElement.removeAttributeNS(NS, "highlight"); }, 20);
}
}
else {