1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:48:00 +01:00

fix visual bell - center it since its dimensions are now less than the box to

workaround a FF3 bug
This commit is contained in:
Doug Kearns
2008-10-20 16:32:30 +00:00
parent 03d91c794c
commit e7d99e5a5b

View File

@@ -613,7 +613,8 @@ const liberator = (function () //{{{
let win = config.visualbellWindow;
let box = document.getBoxObjectFor(win);
popup.openPopup(win, "overlap", 0, 0, false, false);
// NOTE: this doesn't seem to work in FF3 with full box dimensions
popup.openPopup(win, "overlap", 1, 1, false, false);
popup.sizeTo(box.width - 2, box.height - 2);
setTimeout(function () { popup.hidePopup(); }, 20);
}