diff --git a/src/core/view/components/canvas/index.vue b/src/core/view/components/canvas/index.vue index d553daf22b06985e4d8789d73dff14eed13e24cb..a4c885381faddbd16fa1bad6f75bd41d194452fe 100644 --- a/src/core/view/components/canvas/index.vue +++ b/src/core/view/components/canvas/index.vue @@ -4,10 +4,10 @@ :disable-scroll="disableScroll" v-on="_listeners" > -
@@ -372,7 +372,7 @@ export default { const maxWidth = canvas.offsetWidth - x width = width ? Math.min(width, maxWidth) : maxWidth const maxHeight = canvas.offsetHeight - y - height = height ? Math.min(height, maxWidth) : maxHeight + height = height ? Math.min(height, maxHeight) : maxHeight if (!hidpi) { if (!destWidth && !destHeight) { destWidth = Math.round(width * pixelRatio)