From 5e7edb76bc0703e251518addad3c5ec5f8ea9e87 Mon Sep 17 00:00:00 2001 From: christianrhansen Date: Wed, 6 Nov 2019 17:01:47 +0100 Subject: [PATCH] mosys mobile: resize selected cell working via handler is working (still buggy) --- partials/GridEditor.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/partials/GridEditor.vue b/partials/GridEditor.vue index e266cc2..82428e8 100644 --- a/partials/GridEditor.vue +++ b/partials/GridEditor.vue @@ -448,6 +448,7 @@ handler: function (obj) { if (this.showEditingCells) { console.log(obj) + this.mobileCellResize(this.mobileSelectedCell, obj.column, obj.row) } }, deep: true @@ -786,7 +787,8 @@ let parsed = annotation.target.selector.parse(), [x, y, w, h] = parsed.xywh - + console.log('mobileCellResize', w, h) + /* // ----- w if (_w === -1) if (w > 1) w += _w if (_w === 1 && x < this.grid.config.columns - w + 1) w += _w @@ -794,11 +796,12 @@ // ----- h if (_h === -1) if (h > 1) h += _h if (_h === 1 && y < this.grid.config.rows - h + 1) h += _h + */ // w += _w // h += _h - const value = { xywh: [x, y, w, h] } + const value = { xywh: [x, y, _w, _h] } annotation.target.selector.value = value await this.$store.dispatch('annotations/patch', [annotation.id, { target: { selector: { value } } }]) -- GitLab