1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 18:47:58 +01:00

Fix Minefield button on Windows® with Personas garbage installed.

This commit is contained in:
Kris Maglione
2011-04-05 17:34:58 -04:00
parent 4ac814d4f9
commit 52b7a5364d

View File

@@ -1490,10 +1490,12 @@ var Events = Module("events", {
key === "<Esc>" || key === "<C-[>",
isHidden: function isHidden(elem, aggressive) {
if (util.computedStyle(elem).visibility !== "visible")
return true;
if (aggressive)
for (let e = elem; e instanceof Element; e = e.parentNode) {
if (util.computedStyle(e).visibility !== "visible" ||
aggressive && !/set$/.test(e.localName)
&& e.boxObject && e.boxObject.height === 0)
if (!/set$/.test(e.localName) && e.boxObject && e.boxObject.height === 0)
return true;
else if (e.namespaceURI == XUL && e.localName === "panel")
break;