Skip to content

Commit

Permalink
Fix clienthHeight typo (#53)
Browse files Browse the repository at this point in the history
`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`.
  • Loading branch information
GCheung55 authored and RobbieTheWagner committed Nov 22, 2018
1 parent 2f7e34e commit b16984c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/services/device/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down

0 comments on commit b16984c

Please sign in to comment.