diff --git a/app/javascript/template_builder/page.vue b/app/javascript/template_builder/page.vue index 428ef537..bf0b1ea7 100644 --- a/app/javascript/template_builder/page.vue +++ b/app/javascript/template_builder/page.vue @@ -219,7 +219,7 @@ export default { this.newArea.y = e.offsetY / this.$refs.mask.clientHeight } - if (this.drawField?.type === 'cells') { + if ((this.drawField?.type || this.drawFieldType) === 'cells') { this.newArea.cell_w = this.newArea.h * (this.$refs.mask.clientHeight / this.$refs.mask.clientWidth) }