vendor/assets/js/foundation.util.box.js.es6 in foundation-rails-6.2.1.0 vs vendor/assets/js/foundation.util.box.js.es6 in foundation-rails-6.2.3.0
- old
+ new
@@ -26,10 +26,10 @@
var parDims = GetDimensions(parent);
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);
top = (eleDims.offset.top >= eleDims.windowDims.offset.top);
left = (eleDims.offset.left >= eleDims.windowDims.offset.left);