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:
@@ -1490,14 +1490,16 @@ var Events = Module("events", {
|
|||||||
key === "<Esc>" || key === "<C-[>",
|
key === "<Esc>" || key === "<C-[>",
|
||||||
|
|
||||||
isHidden: function isHidden(elem, aggressive) {
|
isHidden: function isHidden(elem, aggressive) {
|
||||||
for (let e = elem; e instanceof Element; e = e.parentNode) {
|
if (util.computedStyle(elem).visibility !== "visible")
|
||||||
if (util.computedStyle(e).visibility !== "visible" ||
|
return true;
|
||||||
aggressive && !/set$/.test(e.localName)
|
|
||||||
&& e.boxObject && e.boxObject.height === 0)
|
if (aggressive)
|
||||||
return true;
|
for (let e = elem; e instanceof Element; e = e.parentNode) {
|
||||||
else if (e.namespaceURI == XUL && e.localName === "panel")
|
if (!/set$/.test(e.localName) && e.boxObject && e.boxObject.height === 0)
|
||||||
break;
|
return true;
|
||||||
}
|
else if (e.namespaceURI == XUL && e.localName === "panel")
|
||||||
|
break;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user