From b74e31384463541732b622bd5529a18a6100b329 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Mar 2021 14:53:33 +0300 Subject: [PATCH] use computed style for element.prototype.visible --- js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common.js b/js/common.js index 9c748f9c5..1f8318862 100755 --- a/js/common.js +++ b/js/common.js @@ -100,7 +100,7 @@ Element.prototype.fadeIn = function(display = undefined){ }; Element.prototype.visible = function() { - return this.style.display != "none" && this.offsetHeight != 0 && this.offsetWidth != 0; + return window.getComputedStyle(this).display != "none"; //&& this.offsetHeight != 0 && this.offsetWidth != 0; } Element.visible = function(elem) {