mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-19 17:21:50 +03:00
Fixed tile image canvas being too large
This commit is contained in:
parent
832ba62df0
commit
b67cf2aa08
@ -278,8 +278,8 @@ $.Tile.prototype = /** @lends OpenSeadragon.Tile.prototype */{
|
|||||||
|
|
||||||
if(!rendered){
|
if(!rendered){
|
||||||
canvas = document.createElement( 'canvas' );
|
canvas = document.createElement( 'canvas' );
|
||||||
canvas.width = this.image.width * $.pixelDensityRatio;
|
canvas.width = this.image.width;
|
||||||
canvas.height = this.image.height * $.pixelDensityRatio;
|
canvas.height = this.image.height;
|
||||||
rendered = canvas.getContext('2d');
|
rendered = canvas.getContext('2d');
|
||||||
rendered.drawImage( this.image, 0, 0 );
|
rendered.drawImage( this.image, 0, 0 );
|
||||||
this.cacheImageRecord.setRenderedContext(rendered);
|
this.cacheImageRecord.setRenderedContext(rendered);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user