mirror of
https://github.com/igorski/bitmappery.git
synced 2026-07-26 08:47:43 +02:00
Address cropping issue when drawing on a wide screen ratio
This commit is contained in:
@@ -409,8 +409,8 @@ class LayerSprite extends ZoomableSprite {
|
||||
const source = this.getPaintSource();
|
||||
const { documentScale } = this.canvas;
|
||||
return {
|
||||
width : fastRound( source.width * documentScale ),
|
||||
height : fastRound( source.height * documentScale ),
|
||||
width : Math.max( source.width, fastRound( source.width * documentScale )),
|
||||
height : Math.max( source.height, fastRound( source.height * documentScale )),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user