Browse Source

Consider elements with class `hidden` as invisible

JC Brand 7 năm trước cách đây
mục cha
commit
4d34952eae
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/utils.js

+ 3 - 0
src/utils.js

@@ -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;
     };