Merge pull request #1957 from chanjsq/patch-1

Add bottom and right properties for getCoords()
This commit is contained in:
Ilya Kantor 2020-06-16 19:42:07 +03:00 committed by GitHub
commit 531864a3a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,6 +216,8 @@ function getCoords(elem) {
return {
top: box.top + window.pageYOffset,
right: box.right + window.pageXOffset,
bottom: box.bottom + window.pageYOffset,
left: box.left + window.pageXOffset
};
}