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,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;
|
||||
|
||||
Reference in New Issue
Block a user