Skip to content

Use getBoundingClientRect to calc visibility

Compare
Choose a tag to compare
@fhopeman fhopeman released this 06 Jul 21:56
· 47 commits to master since this release

Use getBoundingClientRect().top to calculate the visibility of the placeholder. This fixes some problems if the placeholder is inside a wrapper (placeholder.offsiteTop doesn't work proper in some case).