Skip to content

Commit 531864a

Browse files
authored
Merge pull request #1957 from chanjsq/patch-1
Add bottom and right properties for getCoords()
2 parents f1da3ee + 1358b5e commit 531864a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

2-ui/1-document/11-coordinates/article.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ function getCoords(elem) {
216216
217217
return {
218218
top: box.top + window.pageYOffset,
219+
right: box.right + window.pageXOffset,
220+
bottom: box.bottom + window.pageYOffset,
219221
left: box.left + window.pageXOffset
220222
};
221223
}

0 commit comments

Comments
 (0)