From 8441755d613a447f3f26bf8f462dede38835294a Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 15 Mar 2016 11:35:36 -0700 Subject: [PATCH] [fix] 'window' value in 'Dimension' --- src/apis/Dimensions/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apis/Dimensions/index.js b/src/apis/Dimensions/index.js index 715a2a0b..54b7a905 100644 --- a/src/apis/Dimensions/index.js +++ b/src/apis/Dimensions/index.js @@ -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 } } }