Add counter start to reduce

fixes #1736
This commit is contained in:
Sergio Crisostomo 2017-08-30 08:46:22 +02:00
parent 8a4f9d5af3
commit 6a24817623

View file

@ -331,7 +331,7 @@
this.$nextTick(() => { this.$nextTick(() => {
const allWidth = !this.columns.some(cell => !cell.width); // each column set a width const allWidth = !this.columns.some(cell => !cell.width); // each column set a width
if (allWidth) { if (allWidth) {
this.tableWidth = this.columns.map(cell => cell.width).reduce((a, b) => a + b); this.tableWidth = this.columns.map(cell => cell.width).reduce((a, b) => a + b, 0);
} else { } else {
this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1; this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1;
} }