Skip to content

Commit

Permalink
Use correct values in isVisible condition
Browse files Browse the repository at this point in the history
The width and height properties in the return value from getComputedStyle are of the form '*px'.
  • Loading branch information
biancadanforth committed Aug 9, 2019
1 parent a0a467b commit 68ce4cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilsForFrontend.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68ce4cd

Please sign in to comment.