From b67cf2aa087b507e8652c4e2e5d23a8625c1968a Mon Sep 17 00:00:00 2001 From: Wesley Fok Date: Fri, 30 Jan 2015 16:40:34 -0500 Subject: [PATCH] Fixed tile image canvas being too large --- src/tile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tile.js b/src/tile.js index e2f34941..756d9d4a 100644 --- a/src/tile.js +++ b/src/tile.js @@ -278,8 +278,8 @@ $.Tile.prototype = /** @lends OpenSeadragon.Tile.prototype */{ if(!rendered){ canvas = document.createElement( 'canvas' ); - canvas.width = this.image.width * $.pixelDensityRatio; - canvas.height = this.image.height * $.pixelDensityRatio; + canvas.width = this.image.width; + canvas.height = this.image.height; rendered = canvas.getContext('2d'); rendered.drawImage( this.image, 0, 0 ); this.cacheImageRecord.setRenderedContext(rendered);