mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-18 07:43:13 +03:00
Fixed issue with square tile code on IE
This commit is contained in:
parent
e5355abafe
commit
7ba516b30a
@ -392,9 +392,7 @@ $.TileSource.prototype = {
|
|||||||
sy = Math.min( sy, dimensionsScaled.y - py );
|
sy = Math.min( sy, dimensionsScaled.y - py );
|
||||||
|
|
||||||
if (isSource) {
|
if (isSource) {
|
||||||
scale = 1;
|
return new $.Rect(0, 0, Math.floor(sx), Math.floor(sy));
|
||||||
px = 0;
|
|
||||||
py = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new $.Rect( px * scale, py * scale, sx * scale, sy * scale );
|
return new $.Rect( px * scale, py * scale, sx * scale, sy * scale );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user