Add bottom and right properties for getCoords()
The `createMessageUnder()` function below needs the `bottom` coordinate, but it doesn't in the result of `getCoords()`.
This commit is contained in:
parent
b52aa942a8
commit
1358b5e70f
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