Merge pull request #1957 from chanjsq/patch-1
Add bottom and right properties for getCoords()
This commit is contained in:
commit
531864a3a8
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue