Commit cb565595 authored by anton's avatar anton

Fix grid display

parent 3cab2044
Pipeline #29595 passed with stage
in 6 minutes and 48 seconds
......@@ -112,14 +112,14 @@
let elWidth = size ? size.width : this.$el.offsetWidth
// let elHeight = size ? size.height : this.$el.offsetHeight
let cellSizeRatio = this.data.grid.config.ratio
let cellSizeRatio = this.data.configuration.ratio
// let gridHeight = elHeight
let gridHeight = this.$el.offsetHeight
let cellHeight = gridHeight / this.data.grid.config.rows
let cellHeight = gridHeight / this.data.configuration.rows
let cellWidth = elWidth / Math.round(elWidth / (cellHeight * cellSizeRatio))
let gridWidth = cellWidth * this.data.grid.config.columns
let gridWidth = cellWidth * this.data.configuration.columns
let cellsPerWidth = elWidth / cellWidth
// let cellWidthMini = elWidth / this.grid.config.columns
// let cellWidthMini = elWidth / this.configuration.columns
// let gridHeightMini = cellWidthMini / cellSizeRatio
this.gridDimensions = {
full: {
......@@ -134,7 +134,7 @@
/*
mini: {
width: elWidth,
height: gridHeightMini * this.grid.config.rows,
height: gridHeightMini * this.configuration.rows,
cell: {
width: cellWidthMini,
height: gridHeightMini
......
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