mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-19 12:05:46 +01:00
Closes issue #443.
This commit is contained in:
@@ -1482,8 +1482,11 @@ var Events = Module("events", {
|
|||||||
isHidden: function isHidden(elem, aggressive) {
|
isHidden: function isHidden(elem, aggressive) {
|
||||||
for (let e = elem; e instanceof Element; e = e.parentNode) {
|
for (let e = elem; e instanceof Element; e = e.parentNode) {
|
||||||
if (util.computedStyle(e).visibility !== "visible" ||
|
if (util.computedStyle(e).visibility !== "visible" ||
|
||||||
aggressive && e.boxObject && e.boxObject.height === 0)
|
aggressive && !/set$/.test(e.localName)
|
||||||
|
&& e.boxObject && e.boxObject.height === 0)
|
||||||
return true;
|
return true;
|
||||||
|
else if (e.namespaceURI == XUL && e.localName === "panel")
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user