diff options
-rwxr-xr-x | js/common.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/common.js b/js/common.js index 01fe321f7..df1bf8690 100755 --- a/js/common.js +++ b/js/common.js @@ -86,8 +86,7 @@ Element.prototype.fadeIn = function(display = undefined){ }; Element.prototype.visible = function() { - // TODO: should we actually check for offsetWidth/offsetHeight == 0? - return this.style.display != "none"; + return this.style.display != "none" && this.offsetHeight != 0 && this.offsetWidth != 0; } Element.visible = function(elem) { |