Skip to content

Commit

Permalink
Fixed: False positive hidden iframe detection when HTML element is ze…
Browse files Browse the repository at this point in the history
…ro height #1309 #1311
  • Loading branch information
davidjbradshaw committed Aug 22, 2024
1 parent 669674e commit 89e7f20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/child/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,8 @@ The <b>size()</> method has been deprecated and replaced with <b>resize()</>. U
log(`Size unchanged: ${sizes}`)
return Math.max(boundingSize, scrollSize)

case boundingSize === 0:
case boundingSize === 0 &&
document.body.getBoundingClientRect().bottom === 0:
log(`Page is hidden: ${sizes}`)
return scrollSize

Expand Down

0 comments on commit 89e7f20

Please sign in to comment.