Skip to content

Commit

Permalink
add get window height util
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschot committed Mar 2, 2018
1 parent a4ca1d1 commit 87c570c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addon/utils/get-window-height.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function getWindowHeight() {
return window.innerHeight || document.documentElement.clientHeight || document.getElementsByTagName('body')[0].clientHeight;
}
1 change: 1 addition & 0 deletions app/utils/get-window-height.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'ember-mobile-core/utils/get-window-height';

0 comments on commit 87c570c

Please sign in to comment.