react-tiny-popover
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -206,2 +206,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
_this.popoverDiv.style.top = nudgedTop.toFixed() + "px"; | ||
_this.popoverDiv.style.width = null; | ||
_this.popoverDiv.style.height = null; | ||
} | ||
@@ -225,2 +227,3 @@ else { | ||
height = rect.height - (padding - top_1); | ||
width = rect.width - (left - nudgedLeft); | ||
} | ||
@@ -230,4 +233,7 @@ if (leftCollision) { | ||
width = rect.width - (padding - left); | ||
height = rect.height - (topCollision ? (padding - top_1) : (top_1 - nudgedTop)); | ||
} | ||
} | ||
height = height < 0 ? 0 : height; | ||
width = width < 0 ? 0 : width; | ||
_this.popoverDiv.style.height = height + "px"; | ||
@@ -234,0 +240,0 @@ _this.popoverDiv.style.width = width + "px"; |
{ | ||
"name": "react-tiny-popover", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"repository": { | ||
@@ -10,2 +10,10 @@ "type": "git", | ||
"types": "dist/index.d.ts", | ||
"keywords": [ | ||
"react", | ||
"popover", | ||
"react-popover", | ||
"popout", | ||
"pop", | ||
"out" | ||
], | ||
"license": "MIT", | ||
@@ -12,0 +20,0 @@ "author": "Alex Katz", |
Sorry, the diff of this file is not supported yet
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
59434
448