From 94536d225b7894b555df75f5741b559faefcf6de Mon Sep 17 00:00:00 2001 From: Bianca Danforth Date: Thu, 18 Jul 2019 20:30:56 -0700 Subject: [PATCH] Use correct values in isVisible condition The width and height properties in the return value from getComputedStyle are of the form '*px'. --- utilsForFrontend.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilsForFrontend.mjs b/utilsForFrontend.mjs index 2c340ec6..94f208dd 100644 --- a/utilsForFrontend.mjs +++ b/utilsForFrontend.mjs @@ -468,8 +468,8 @@ export function isVisible(fnodeOrElement) { if (style.visibility === 'hidden' || style.display === 'none' || style.opacity === '0' || - style.width === '0' || - style.height === '0') { + style.width === '0px' || + style.height === '0px') { return false; } else { // It wasn't hidden based on a computed style. See if it's