mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:55:56 +00:00
Element visible: check for offsetHeight/offsetWidth
This commit is contained in:
@@ -86,8 +86,7 @@ Element.prototype.fadeIn = function(display = undefined){
|
|||||||
};
|
};
|
||||||
|
|
||||||
Element.prototype.visible = function() {
|
Element.prototype.visible = function() {
|
||||||
// TODO: should we actually check for offsetWidth/offsetHeight == 0?
|
return this.style.display != "none" && this.offsetHeight != 0 && this.offsetWidth != 0;
|
||||||
return this.style.display != "none";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Element.visible = function(elem) {
|
Element.visible = function(elem) {
|
||||||
|
|||||||
Reference in New Issue
Block a user