diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-01-21 16:14:56 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-01-21 17:12:31 -0500 |
commit | 372e04e78e81cc8eb868c5fc97f271a695569aa5 (patch) | |
tree | 8ff7bde989448abca0bc1876b19936c219ba792d /src/css.js | |
parent | 1c77259d06e49ccaedbd0f7adf968e10748dacc0 (diff) | |
download | jquery-372e04e78e81cc8eb868c5fc97f271a695569aa5.tar.gz jquery-372e04e78e81cc8eb868c5fc97f271a695569aa5.zip |
Treat an element as hidden if either offsetWidth or offsetHeight is 0. Fixes #13132, #10406.
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js index e2dcb5018..c64fdb3a5 100644 --- a/src/css.js +++ b/src/css.js @@ -532,7 +532,7 @@ jQuery(function() { if ( jQuery.expr && jQuery.expr.filters ) { jQuery.expr.filters.hidden = function( elem ) { - return elem.offsetWidth === 0 && elem.offsetHeight === 0; + return elem.offsetWidth === 0 || elem.offsetHeight === 0; }; jQuery.expr.filters.visible = function( elem ) { |