Browse files

multires.js: get device pixel size

  • Loading branch information...
1 parent cce01fb commit 37ca43d69f7147fa838939a98894cb5759e3c45c @kig committed Aug 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 multires.js
View
4 multires.js
@@ -113,8 +113,8 @@ MultiRes.getHeaderImage = function(header, wantedSize) {
MultiRes.getWantedImageSize = function(img) {
return {
- width : window.devicePixelRatio * img.width,
- height : window.devicePixelRatio * img.height
+ width : window.devicePixelRatio * (window.outerWidth/window.innerWidth) * img.width,
+ height : window.devicePixelRatio * (window.outerWidth/window.innerWidth) * img.height
};
};

0 comments on commit 37ca43d

Please sign in to comment.