get-window-offset
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -90,8 +90,12 @@ 'use strict'; | ||
move = (0, _alignWith2.default)(targetInfo, floatInfo, loc); | ||
var movePos = (0, _getAfterMove2.default)(floatInfo, move); | ||
var bFullOnScreen = (0, _isFullOnScreen2.default)(movePos, winInfo.scrollInfo); | ||
if (bFullOnScreen) { | ||
if (!winInfo) { | ||
return true; | ||
} else { | ||
return false; | ||
var movePos = (0, _getAfterMove2.default)(floatInfo, move); | ||
var bFullOnScreen = (0, _isFullOnScreen2.default)(movePos, winInfo.scrollInfo); | ||
if (bFullOnScreen) { | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
} | ||
@@ -98,0 +102,0 @@ }); |
{ | ||
"name": "get-window-offset", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "A simple library to tell you where could get best space by a target to put your container.", | ||
@@ -5,0 +5,0 @@ "repository": "react-atomic/react-atomic-organism", |
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
15906
389