Address cropping issue when drawing on a wide screen ratio

This commit is contained in:
Igor Zinken
2025-03-03 17:42:49 +01:00
parent d08fa7c685
commit bbcacad883

View File

@@ -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 )),
};
};