Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aligner

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aligner - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc