Comparing version 1.0.6 to 1.0.7
11
index.js
@@ -71,3 +71,8 @@ var m = require('mumath'); | ||
//get relativeTo & parent rectangles | ||
var parent = el.offsetParent || win; | ||
if (isFixed(el)) { | ||
var parent = win; | ||
} | ||
else { | ||
var parent = el.offsetParent || win; | ||
} | ||
var parentRect = offsets(parent); | ||
@@ -86,6 +91,2 @@ var parentPaddings = paddings(parent); | ||
if (isFixed(el)) { | ||
targetRect.top = 0; | ||
targetRect.left = 0; | ||
} | ||
// parentRect = m.add(parentRect, parentPaddings); | ||
@@ -92,0 +93,0 @@ |
{ | ||
"name": "aligner", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"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
118
8701