From 09b6299908beecf6cae5241e0240580dfb0af6a5 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Tue, 25 Sep 2018 18:08:37 +0200 Subject: [PATCH] fix for calculating viewportHeight (whithout visible scrollbar height) --- src/utils/windowUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/windowUtils.js b/src/utils/windowUtils.js index 7eb29cf2..c13c803b 100644 --- a/src/utils/windowUtils.js +++ b/src/utils/windowUtils.js @@ -3,7 +3,7 @@ export const getViewportHeight = (): number => ( // $FlowIssue - window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight // $FlowIssue + document.documentElement.clientHeight || document.body.clientHeight // $FlowIssue ); export const getScrollX = (): number => {