Commit d7b1693a authored by christianrhansen's avatar christianrhansen

mobile: "check"-button in temp-cell disappears when resizing cell

parent 774406b7
Pipeline #16728 passed with stage
in 5 minutes and 43 seconds
......@@ -114,12 +114,12 @@
//----- temporary cell (mobile)
.cell-item.cell-item-tmp-mobile.row.justify-center.items-center(
v-if="mobileTempCell.show && cachedNewCell", :style="mobileTempCellStyle(mobileTempCell)")
q-btn.bg-dark.text-white.q-mr-sm(@click="event => {addMobileCell(event)}", round, flat)
cell.absolute-top-left.q-ma-sm(:cell="cachedNewCell")
q-btn.bg-dark.text-white(v-if="mobileTempCell.button",
@click="event => {addMobileCell(event)}", round, flat)
q-icon(name="check")
//
q-btn.bg-dark.text-white(@click="clearTempCell()", round, flat)
q-icon(name="clear")
// cell(:cell="tmpCell")
// ---------------------------------------------------------------------------------------------------------------
template(v-else)
......@@ -261,7 +261,7 @@
mobileSelectedCell: undefined,
touch: {position: {top: undefined, left: undefined}},
isMobile: this.$q.platform.is.mobile,
mobileTempCell: {x: 0, y: 0, width: 1, height: 1, show: false, onGrid: false}
mobileTempCell: {x: 0, y: 0, width: 1, height: 1, show: false, onGrid: false, button: false}
}
},
computed: {
......@@ -340,7 +340,7 @@
},
methods: {
clearTempCell () {
this.mobileTempCell = {x: undefined, y: undefined, width: undefined, height: undefined, onGrid: false}
this.mobileTempCell = {x: undefined, y: undefined, width: undefined, height: undefined, onGrid: false, button: false}
},
panGrid (obj) {
if (this.cachedNewCell && !this.mobileTempCell.onGrid) {
......@@ -349,6 +349,7 @@
if (obj.isFirst) {
this.mobileTempCell.show = true
this.mobileTempCell.button = false
this.mobileTempCell.x = res.x
this.mobileTempCell.y = res.y
}
......@@ -358,6 +359,7 @@
if (obj.isFinal) {
this.mobileTempCell.onGrid = true
this.mobileTempCell.button = true
// this.addMobileCell(obj)
// this.mobileTempCell.show = 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