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:
parent
f3269b3eb1
commit
09b6299908
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
export const getViewportHeight = (): number => (
|
export const getViewportHeight = (): number => (
|
||||||
// $FlowIssue
|
// $FlowIssue
|
||||||
window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight // $FlowIssue
|
document.documentElement.clientHeight || document.body.clientHeight // $FlowIssue
|
||||||
);
|
);
|
||||||
|
|
||||||
export const getScrollX = (): number => {
|
export const getScrollX = (): number => {
|
||||||
|
Loading…
Reference in New Issue
Block a user