From 994aeafeff1b57c590d7bf14cad2ffc1378bc494 Mon Sep 17 00:00:00 2001 From: Martin Kleinschrodt Date: Tue, 12 Sep 2017 09:21:09 +0200 Subject: [PATCH] Check size of scroll target instead of iron-list element to determine whether list is 'visible' --- iron-list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iron-list.html b/iron-list.html index e12e3d2b..cffaa4e3 100644 --- a/iron-list.html +++ b/iron-list.html @@ -687,7 +687,7 @@ * True if the current list is visible. */ get _isVisible() { - return Boolean(this.offsetWidth || this.offsetHeight); + return Boolean(this.scrollTarget.offsetWidth || this.scrollTarget.offsetHeight); }, /**