Commit 9eaf06be authored by christianrhansen's avatar christianrhansen

adjust scroll-position when moving a cell via arrow-buttons

parent 31d9dcfc
Pipeline #17098 passed with stage
in 6 minutes and 28 seconds
......@@ -570,6 +570,8 @@
selector: { value: target.selector.value }
}
}])
this.$el.scrollLeft = this.$el.scrollLeft + (this.gridDimensions.full.cell.width * _x)
},
async mobileCellResize (annotation, _w, _h) {
let
......@@ -981,6 +983,7 @@
let gridHeight = this.$el.offsetHeight
let cellHeight = gridHeight / this.grid.config.rows
let cellWidth = elWidth / Math.round(elWidth / (cellHeight * cellSizeRatio))
console.log('cellWidth', cellWidth)
let gridWidth = cellWidth * this.grid.config.columns
let cellsPerWidth = elWidth / cellWidth
let cellWidthMini = elWidth / this.grid.config.columns
......
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