@vx/tooltip
Advanced tools
Comparing version 0.0.153 to 0.0.158
@@ -49,5 +49,5 @@ 'use strict'; | ||
if (rect && parentRect) { | ||
left = offsetLeft + rect.right > parentRect.right ? left - rect.width - offsetLeft : left + offsetLeft; | ||
left = offsetLeft + rect.right > parentRect.right || offsetLeft + rect.right > window.innerWidth ? left - rect.width - offsetLeft : left + offsetLeft; | ||
top = offsetTop + rect.bottom > parentRect.bottom ? top - rect.height - offsetTop : top + offsetTop; | ||
top = offsetTop + rect.bottom > parentRect.bottom || offsetTop + rect.bottom > window.innerHeight ? top - rect.height - offsetTop : top + offsetTop; | ||
} | ||
@@ -54,0 +54,0 @@ |
{ | ||
"name": "@vx/tooltip", | ||
"version": "0.0.153", | ||
"version": "0.0.158", | ||
"description": "vx tooltip", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -31,6 +31,6 @@ /* eslint react/forbid-prop-types: 0 */ | ||
if (rect && parentRect) { | ||
left = (offsetLeft + rect.right) > parentRect.right | ||
left = ((offsetLeft + rect.right) > parentRect.right || (offsetLeft + rect.right) > window.innerWidth) | ||
? (left - rect.width - offsetLeft) : left + offsetLeft; | ||
top = (offsetTop + rect.bottom) > parentRect.bottom | ||
top = ((offsetTop + rect.bottom) > parentRect.bottom || (offsetTop + rect.bottom) > window.innerHeight) | ||
? (top - rect.height - offsetTop) : top + offsetTop; | ||
@@ -37,0 +37,0 @@ } |
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
16607