...
 
Commits (3)
......@@ -35,7 +35,7 @@
q-icon(name="edit")
q-btn.q-px-sm.on-right.on-left(
@click="event => {handleCellContextMenuDelete(event, mobileSelectedCell)}", flat)
@click="event => {handleCellContextMenuDelete(event, selectedCell.annotation)}", flat)
q-icon(name="delete")
q-btn.clear-button.q-px-md.q-mr-md.on-right(@click="clearHandler('cell')", flat)
......@@ -248,7 +248,6 @@
gridDimensions: { gridWidth: 0, gridHeight: 0, cellWidth: 0, cellHeight: 0 },
contextMenuClickPosition: {},
resizingGrid: false,
mobileSelectedCell: undefined,
isMobile: this.$q.platform.is.mobile,
mobileTempCell: {
x: 0,
......@@ -263,7 +262,6 @@
button: false
},
modal: false,
// cursor: {x: undefined, y: undefined},
cellHandler: {
size: {width: 40, height: 40},
move: {x: 20, y: undefined, gridPosition: {row: undefined, column: undefined}, pushed: false, pos: undefined, inViewport: undefined, onLeft: undefined, onRight: undefined, dataLeft: undefined},
......@@ -344,7 +342,7 @@
'cellHandler.move.gridPosition': {
handler: function (obj) {
if (this.showEditingCells) {
this.mobileCellMove(this.mobileSelectedCell, obj.column, obj.row)
this.mobileCellMove(this.selectedCell.annotation, obj.column, obj.row)
}
},
deep: true
......@@ -354,7 +352,7 @@
if (this.showEditingCells) {
let w = obj.column - this.cellHandler.move.gridPosition.column + 1
let h = obj.row - this.cellHandler.move.gridPosition.row + 1
this.mobileCellResize(this.mobileSelectedCell, w, h)
this.mobileCellResize(this.selectedCell.annotation, w, h)
}
},
deep: true
......@@ -392,7 +390,7 @@
this.clearHandler('temp cell')
break
case 'temp cell':
this.mobileTempCell = {x: undefined, y: undefined, width: undefined, height: undefined, onGrid: false, button: false}
this.mobileTempCell = {x: undefined, y: undefined, width: undefined, height: undefined, onGrid: false}
break
}
},
......@@ -449,7 +447,6 @@
if (obj.isFirst) {
this.activeHandler = true
this.mobileTempCell.show = true
// this.mobileTempCell.button = false
this.cellHandler.move.pushed = true
}
......@@ -465,7 +462,6 @@
if (obj.isFinal) {
this.activeHandler = false
this.mobileTempCell.onGrid = true
// this.mobileTempCell.button = true
this.mobileTempCell.left = this.gridDimensions.full.cell.width * (res.x - 1)
this.cellHandler.move.pushed = false
// this.cellHandler.move.y = this.gridDimensions.full.cell.height * (res.y - 1) + 8 + 59 + 20
......@@ -491,7 +487,6 @@
if (obj.isFirst) {
this.activeHandler = true
this.mobileTempCell.show = true
// this.mobileTempCell.button = false
this.cellHandler.resize.pushed = true
}
......@@ -504,7 +499,6 @@
if (obj.isFinal) {
this.activeHandler = false
this.mobileTempCell.onGrid = true
// this.mobileTempCell.button = true
this.cellHandler.resize.pushed = false
// this.addMobileCell(obj)
// this.mobileTempCell.show = false
......@@ -527,7 +521,6 @@
if (obj.isFirst) {
this.mobileTempCell.show = true
// this.mobileTempCell.button = false
this.mobileTempCell.x = res.x
this.mobileTempCell.y = res.y
}
......@@ -537,7 +530,6 @@
if (obj.isFinal) {
this.mobileTempCell.onGrid = true
// this.mobileTempCell.button = true
// this.addMobileCell(obj)
// this.mobileTempCell.show = false
this.cellHandler.move.x = this.gridDimensions.full.cell.width * (this.mobileTempCell.x - 1) + 8 + 20
......@@ -607,7 +599,7 @@
this.cellHandler.resize.x = this.gridDimensions.full.cell.width * (x + w - 1) - 8 - 20
this.cellHandler.resize.y = this.gridDimensions.full.cell.height * (y + h - 1) - 8 - 20
this.mobileSelectedCell = annotation
this.selectedCell.annotation = annotation
this.getCellType(annotation)
}
},
......