Comparing version 4.8.2 to 4.8.3
import getScrollBarSize from './getScrollBarSize'; | ||
export default (function (close) { | ||
var bodyIsOverflowing = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth; | ||
if (!bodyIsOverflowing) { | ||
return; | ||
} | ||
if (close) { | ||
@@ -5,0 +9,0 @@ document.body.style.position = ''; |
@@ -14,2 +14,6 @@ 'use strict'; | ||
exports['default'] = function (close) { | ||
var bodyIsOverflowing = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth; | ||
if (!bodyIsOverflowing) { | ||
return; | ||
} | ||
if (close) { | ||
@@ -16,0 +20,0 @@ document.body.style.position = ''; |
{ | ||
"name": "rc-util", | ||
"version": "4.8.2", | ||
"version": "4.8.3", | ||
"description": "Common Utils For React Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
90502
2885