Commit 0f6544e5 authored by christianrhansen's avatar christianrhansen

show temp cell when resizing/moving cell. update only after releasing handler. (unfinished)

parent 05578514
Pipeline #51047 passed with stage
in 4 minutes and 8 seconds
......@@ -119,8 +119,8 @@
//----------------------------------------------------------------------------------------------- temporary cell
// template(v-if="!tempCell.hidden && cachedNewCell")
template(v-if="cachedNewCell")
.cell-item.temp-cell(@click="clickTempCell", :style="getCellStyle(tempCell)")
// template(v-if="cachedNewCell")
.cell-item.temp-cell(@click="clickTempCell", :style="getCellStyle(tempCell)")
//------------------------------------------------------------------------------------------------------ handler
//--------------------------------------------------------------------------------------------------------- move
......@@ -459,7 +459,7 @@
column = obj.column,
row = obj.row
if (this.showEditingCells) this.setCellPosition(this.selectedCell.annotation, column, row)
// if (this.showEditingCells) this.setCellPosition(this.selectedCell.annotation, column, row)
let tempCell = this.tempCell
Object.assign(tempCell, {
......@@ -469,17 +469,24 @@
},
deep: true
},
/*
'cellHandler.resize.gridPosition': {
handler: function (obj) {
if (this.showEditingCells) {
let
w = obj.column - this.cellHandler.move.gridPosition.column + 1,
h = obj.row - this.cellHandler.move.gridPosition.row + 1
this.setCellDimensions(this.selectedCell.annotation, w, h)
let tempCell = this.tempCell
Object.assign(tempCell, {
width: w,
height: h
})
// this.setCellDimensions(this.selectedCell.annotation, w, h)
}
},
deep: true
},
*/
annotations () {
this.updateAnnotationUIStates()
},
......@@ -671,6 +678,7 @@
}
if (obj.isFinal) {
this.setCellPosition(this.selectedCell.annotation, column, row)
tempCell.onGrid = true
Object.assign(moveHandler, {
......@@ -702,6 +710,7 @@
})
if (obj.isFinal) {
this.setCellDimensions(this.selectedCell.annotation, tempCell.width, tempCell.height)
tempCell.onGrid = true
resizeHandler.pushed = false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment