mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:58: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:
@@ -613,7 +613,8 @@ const liberator = (function () //{{{
|
|||||||
let win = config.visualbellWindow;
|
let win = config.visualbellWindow;
|
||||||
let box = document.getBoxObjectFor(win);
|
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);
|
popup.sizeTo(box.width - 2, box.height - 2);
|
||||||
setTimeout(function () { popup.hidePopup(); }, 20);
|
setTimeout(function () { popup.hidePopup(); }, 20);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user