Skip to content

Commit

Permalink
window.innerHeight… durrr… should fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
davatron5000 committed Aug 24, 2012
1 parent 055cc99 commit de13030
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fitWeird.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ var init = function(){
}

var fillVars = function(){
widthPx.innerHTML = window.outerWidth;
heightPx.innerHTML = window.outerHeight;
widthPx.innerHTML = window.innerWidth;
heightPx.innerHTML = window.innerHeight;

// TODO: Calc EM size based off of body font size (i.e user zooming)
widthEm.innerHTML = window.outerWidth / 16;
heightEm.innerHTML = window.outerHeight / 16;
widthEm.innerHTML = window.innerWidth / 16;
heightEm.innerHTML = window.innerHeight / 16;

}

Expand Down

0 comments on commit de13030

Please sign in to comment.