mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +08:00
[fix] 'window' value in 'Dimension'
This commit is contained in:
@@ -17,9 +17,9 @@ const dimensions = {
|
||||
},
|
||||
window: {
|
||||
fontScale: 1,
|
||||
get height() { return document.documentElement.clientHeight },
|
||||
get height() { return window.innerHeight },
|
||||
scale: window.devicePixelRatio || 1,
|
||||
get width() { return document.documentElement.clientWidth }
|
||||
get width() { return window.innerWidth }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user