Commit de941ee5 authored by christianrhansen's avatar christianrhansen

mobile: "resize"-button keeps its bottom-right-position in new cell when cell is moved

parent bfc7b867
Pipeline #17209 passed with stage
in 1 minute and 24 seconds
......@@ -145,7 +145,7 @@
//----- move handler (top left)
// :style="{left: handlerNewCell.move.x - 20 + 'px', top: handlerNewCell.move.y - 20 + 'px'}")
.handler-new-cell.move.absolute.text-dark.justify-center.row.bg-white.shadow-6(
v-if="mobileTempCell.onGrid",
v-if="mobileTempCell.onGrid && !handlerNewCell.resize.pushed",
v-touch-pan="handleMoveCell", round, flat,
:style="{left: handlerNewCell.move.x - 20 + 'px', top: handlerNewCell.move.y - 20 + 'px'}",
:class="{'pushed': !handlerNewCell.move.pushed}")
......@@ -155,7 +155,7 @@
//----- resize handler (bottom right)
.handler-new-cell.resize.absolute.text-dark.justify-center.row.bg-white.shadow-6(
v-if="mobileTempCell.onGrid",
v-if="mobileTempCell.onGrid && !handlerNewCell.move.pushed",
v-touch-pan="handleResizeCell", round, flat,
:style="{left: handlerNewCell.resize.x - 20 + 'px', top: handlerNewCell.resize.y - 20 + 'px'}",
:class="{'pushed': !handlerNewCell.resize.pushed}")
......@@ -511,6 +511,9 @@
// this.handlerNewCell.move.y = this.gridDimensions.full.cell.height * (res.y - 1) + 8 + 59 + 20
this.handlerNewCell.move.x = this.gridDimensions.full.cell.width * (this.mobileTempCell.x - 1) + 8 + 20
this.handlerNewCell.move.y = this.gridDimensions.full.cell.height * (this.mobileTempCell.y - 1) + 8 + 20
this.handlerNewCell.resize.x = this.gridDimensions.full.cell.width * (res.x + this.mobileTempCell.width - 1) - 8 - 20
this.handlerNewCell.resize.y = this.gridDimensions.full.cell.height * (res.y + this.mobileTempCell.height - 1) - 8 - 20
}
},
handleResizeCell (obj) {
......@@ -1279,6 +1282,7 @@
.transition-opacity
transition opacity ease 350ms
//************************************************** mobile: new cell
handler-width = 40px
.handler-new-cell
......
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