Comparing version 1.0.10 to 1.0.11
16
index.js
@@ -84,7 +84,15 @@ var margins = require('mucss/margin'); | ||
parentRect.top += -parentBorders.top + placeeMargins.top + parentPaddings.top; | ||
parentRect.left += -parentBorders.left + placeeMargins.left + parentPaddings.left; | ||
parentRect.bottom += -parentBorders.bottom + placeeMargins.bottom + parentPaddings.bottom; | ||
parentRect.right += -parentBorders.right + placeeMargins.right + parentPaddings.right; | ||
parentRect.top += -parentBorders.top + placeeMargins.top; | ||
parentRect.left += -parentBorders.left + placeeMargins.left; | ||
parentRect.bottom += -parentBorders.bottom + placeeMargins.bottom; | ||
parentRect.right += -parentBorders.right + placeeMargins.right; | ||
//FIXME: I don’t understand why, but for popoff and placer it is required like that | ||
if (parent !== doc.body) { | ||
parentRect.top += parentPaddings.top | ||
parentRect.left += parentPaddings.left; | ||
parentRect.bottom += parentPaddings.bottom; | ||
parentRect.right += parentPaddings.right; | ||
} | ||
//correct parentRect | ||
@@ -91,0 +99,0 @@ if (parent === window || (parent === doc.body && getComputedStyle(parent).position === 'static') || parent === root) { |
{ | ||
"name": "aligner", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"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
9350
124