diff --git a/js/foundation.util.box.js b/js/foundation.util.box.js index 71ca289661..779981675d 100644 --- a/js/foundation.util.box.js +++ b/js/foundation.util.box.js @@ -28,7 +28,7 @@ function ImNotTouchingYou(element, parent, lrOnly, tbOnly) { bottom = (eleDims.offset.top + eleDims.height <= parDims.height + parDims.offset.top); top = (eleDims.offset.top >= parDims.offset.top); left = (eleDims.offset.left >= parDims.offset.left); - right = (eleDims.offset.left + eleDims.width <= parDims.width); + right = (eleDims.offset.left + eleDims.width <= parDims.width + parDims.offset.left); } else { bottom = (eleDims.offset.top + eleDims.height <= eleDims.windowDims.height + eleDims.windowDims.offset.top);