mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:15:55 +00:00
use computed style for element.prototype.visible
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user