rc-trigger
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -24,13 +24,15 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
if (stretch) { | ||
// Stretch with target | ||
if (stretch.indexOf('height') !== -1) { | ||
sizeStyle.height = targetSize.height; | ||
} else if (stretch.indexOf('minHeight') !== -1) { | ||
sizeStyle.minHeight = targetSize.height; | ||
var width = targetSize.width, | ||
height = targetSize.height; // Stretch with target | ||
if (stretch.indexOf('height') !== -1 && height) { | ||
sizeStyle.height = height; | ||
} else if (stretch.indexOf('minHeight') !== -1 && height) { | ||
sizeStyle.minHeight = height; | ||
} | ||
if (stretch.indexOf('width') !== -1) { | ||
sizeStyle.width = targetSize.width; | ||
} else if (stretch.indexOf('minWidth') !== -1) { | ||
sizeStyle.minWidth = targetSize.width; | ||
if (stretch.indexOf('width') !== -1 && width) { | ||
sizeStyle.width = width; | ||
} else if (stretch.indexOf('minWidth') !== -1 && width) { | ||
sizeStyle.minWidth = width; | ||
} | ||
@@ -37,0 +39,0 @@ } |
@@ -35,13 +35,15 @@ "use strict"; | ||
if (stretch) { | ||
// Stretch with target | ||
if (stretch.indexOf('height') !== -1) { | ||
sizeStyle.height = targetSize.height; | ||
} else if (stretch.indexOf('minHeight') !== -1) { | ||
sizeStyle.minHeight = targetSize.height; | ||
var width = targetSize.width, | ||
height = targetSize.height; // Stretch with target | ||
if (stretch.indexOf('height') !== -1 && height) { | ||
sizeStyle.height = height; | ||
} else if (stretch.indexOf('minHeight') !== -1 && height) { | ||
sizeStyle.minHeight = height; | ||
} | ||
if (stretch.indexOf('width') !== -1) { | ||
sizeStyle.width = targetSize.width; | ||
} else if (stretch.indexOf('minWidth') !== -1) { | ||
sizeStyle.minWidth = targetSize.width; | ||
if (stretch.indexOf('width') !== -1 && width) { | ||
sizeStyle.width = width; | ||
} else if (stretch.indexOf('minWidth') !== -1 && width) { | ||
sizeStyle.minWidth = width; | ||
} | ||
@@ -48,0 +50,0 @@ } |
{ | ||
"name": "rc-trigger", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "base abstract trigger component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
112727
2468