1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

fix for calculating viewportHeight (whithout visible scrollbar height)

This commit is contained in:
Szymon Lesisz 2018-09-25 18:08:37 +02:00
parent f3269b3eb1
commit 09b6299908

View File

@ -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 => {