Consider elements with class hidden as invisible

This commit is contained in:
JC Brand 2018-02-19 10:35:42 +01:00
parent 48c806c9d0
commit 4d34952eae

View File

@ -655,6 +655,9 @@
}
u.isVisible = function (el) {
if (u.hasClass('hidden', el)) {
return false;
}
// XXX: Taken from jQuery's "visible" implementation
return el.offsetWidth > 0 || el.offsetHeight > 0 || el.getClientRects().length > 0;
};