re-resizable
Advanced tools
Comparing version 6.9.17 to 6.9.18
@@ -560,2 +560,3 @@ 'use strict'; | ||
Resizable.prototype.setBoundingClientRect = function () { | ||
var adjustedScale = 1 / (this.props.scale || 1); | ||
// For parent boundary | ||
@@ -566,4 +567,4 @@ if (this.props.bounds === 'parent') { | ||
var parentRect = parent_2.getBoundingClientRect(); | ||
this.parentLeft = parentRect.left; | ||
this.parentTop = parentRect.top; | ||
this.parentLeft = parentRect.left * adjustedScale; | ||
this.parentTop = parentRect.top * adjustedScale; | ||
} | ||
@@ -574,4 +575,4 @@ } | ||
var targetRect = this.props.bounds.getBoundingClientRect(); | ||
this.targetLeft = targetRect.left; | ||
this.targetTop = targetRect.top; | ||
this.targetLeft = targetRect.left * adjustedScale; | ||
this.targetTop = targetRect.top * adjustedScale; | ||
} | ||
@@ -581,6 +582,6 @@ // For boundary | ||
var _a = this.resizable.getBoundingClientRect(), left = _a.left, top_1 = _a.top, right = _a.right, bottom = _a.bottom; | ||
this.resizableLeft = left; | ||
this.resizableRight = right; | ||
this.resizableTop = top_1; | ||
this.resizableBottom = bottom; | ||
this.resizableLeft = left * adjustedScale; | ||
this.resizableRight = right * adjustedScale; | ||
this.resizableTop = top_1 * adjustedScale; | ||
this.resizableBottom = bottom * adjustedScale; | ||
} | ||
@@ -587,0 +588,0 @@ }; |
@@ -493,2 +493,3 @@ var __extends = (this && this.__extends) || (function () { | ||
Resizable.prototype.setBoundingClientRect = function () { | ||
var adjustedScale = 1 / (this.props.scale || 1); | ||
// For parent boundary | ||
@@ -499,4 +500,4 @@ if (this.props.bounds === 'parent') { | ||
var parentRect = parent_2.getBoundingClientRect(); | ||
this.parentLeft = parentRect.left; | ||
this.parentTop = parentRect.top; | ||
this.parentLeft = parentRect.left * adjustedScale; | ||
this.parentTop = parentRect.top * adjustedScale; | ||
} | ||
@@ -507,4 +508,4 @@ } | ||
var targetRect = this.props.bounds.getBoundingClientRect(); | ||
this.targetLeft = targetRect.left; | ||
this.targetTop = targetRect.top; | ||
this.targetLeft = targetRect.left * adjustedScale; | ||
this.targetTop = targetRect.top * adjustedScale; | ||
} | ||
@@ -514,6 +515,6 @@ // For boundary | ||
var _a = this.resizable.getBoundingClientRect(), left = _a.left, top_1 = _a.top, right = _a.right, bottom = _a.bottom; | ||
this.resizableLeft = left; | ||
this.resizableRight = right; | ||
this.resizableTop = top_1; | ||
this.resizableBottom = bottom; | ||
this.resizableLeft = left * adjustedScale; | ||
this.resizableRight = right * adjustedScale; | ||
this.resizableTop = top_1 * adjustedScale; | ||
this.resizableBottom = bottom * adjustedScale; | ||
} | ||
@@ -520,0 +521,0 @@ }; |
{ | ||
"name": "re-resizable", | ||
"version": "6.9.17", | ||
"version": "6.9.18", | ||
"description": "Resizable component for React.", | ||
@@ -5,0 +5,0 @@ "title": "re-resizable", |
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
139088
2939