mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:17:59 +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-[>",
|
key === "<Esc>" || key === "<C-[>",
|
||||||
|
|
||||||
isHidden: function isHidden(elem, aggressive) {
|
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) {
|
for (let e = elem; e instanceof Element; e = e.parentNode) {
|
||||||
if (util.computedStyle(e).visibility !== "visible" ||
|
if (!/set$/.test(e.localName) && 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")
|
else if (e.namespaceURI == XUL && e.localName === "panel")
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user