We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a9ced commit 2a2b5e8Copy full SHA for 2a2b5e8
src/utility.js
@@ -226,7 +226,7 @@ function isPositionNotStatic(element) {
226
function getElementOffsets(el, windowWidth, windowHeight) {
227
// jquery offset returns top and left relative to document in pixels.
228
var offsets = el.offset();
229
- // right and bottom offset relative to window width/height
+ // right and bottom offset relative to window width/height
230
offsets.right = windowWidth - el.outerWidth() - offsets.left;
231
offsets.bottom = windowHeight - el.outerHeight() - offsets.top;
232
return offsets;
0 commit comments