From b16984ca757794c9b0a32278c701e9428c19e964 Mon Sep 17 00:00:00 2001 From: Garrick Cheung Date: Thu, 22 Nov 2018 08:26:25 -0800 Subject: [PATCH] Fix clienthHeight typo (#53) `device/layout` service has a typo in `_currentHeight` method that prevents getting the `window.document.documentElement.clientHeight` value properly. Change `window.document.documentElement.clienthHeight` -> `window.document.documentElement.clientHeight`. --- addon/services/device/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/services/device/layout.js b/addon/services/device/layout.js index 29446db..e4e88bd 100644 --- a/addon/services/device/layout.js +++ b/addon/services/device/layout.js @@ -128,7 +128,7 @@ export default Service.extend(Evented, { _currentHeight() { const heights = [ - window.document.documentElement.clienthHeight, + window.document.documentElement.clientHeight, window.innerHeight, window.screen.height // for mobile iOS ]