Comparing version 1.0.7 to 1.0.8
@@ -53,2 +53,7 @@ var m = require('mumath'); | ||
var targetRect = offsets(relativeTo); | ||
if (relativeTo === window) { | ||
targetRect.top = 0; | ||
targetRect.left = 0; | ||
} | ||
for (var i = els.length, el, s; i--;){ | ||
@@ -83,7 +88,6 @@ el = els[i]; | ||
//correct parentRect | ||
if (parent === window || (parent === doc.body && getComputedStyle(parent).position === 'static') || parent === root ) { | ||
if (parent === window || (parent === doc.body && getComputedStyle(parent).position === 'static') || parent === root) { | ||
parentRect.left = 0; | ||
parentRect.top = 0; | ||
} | ||
parentRect = m.sub(parentRect, parentBorders); | ||
@@ -90,0 +94,0 @@ parentRect = m.add(parentRect, placeeMargins); |
{ | ||
"name": "aligner", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Align elements just like photoshop/illustrator does", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8782
122