Permalink
Browse files

Fixing height bug

  • Loading branch information...
1 parent 0027d08 commit c0eaf64aa828983d1cb469fc5bad5a34c5795c70 @robtarr robtarr committed Oct 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 bookmarklet-js/mediaQueryBookmarklet.js
@@ -9,7 +9,7 @@ window.mqb = {
document.body.removeChild( bookmarklet );
}
- mqb.version = '1.4.3';
+ mqb.version = '1.4.4';
mqb.tmpl =
"<p id=\"mqb-dimensions\"></p>" +
"<p id=\"mqb-mousePosition\"></p>" +
@@ -196,8 +196,8 @@ window.mqb = {
},
showCurrentSize: function() {
- var width = document.width || window.outerWidth;
- var height = document.height || window.outerHeight;
+ var width = window.innerWidth || window.outerWidth;
+ var height = window.innerHeight || window.outerHeight;
mqb.viewDimensions.innerHTML = width + 'px x ' + height + 'px<br/>' + ( width / mqb.findEmSize() ).toPrecision( 4 ) + 'em x ' + ( height / mqb.findEmSize() ).toPrecision( 4 ) + 'em';
},

0 comments on commit c0eaf64

Please sign in to comment.