Skip to content

Commit 21505ee

Browse files
author
Alexander Galaydyuk
committed
fix height of container and center alignment after remove item
1 parent 14b8098 commit 21505ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Grid.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default {
9797
},
9898
9999
height () {
100-
return Math.ceil(this.items.length / this.rowCount) *
100+
return Math.ceil(this.list.length / this.rowCount) *
101101
this.cellHeight
102102
},
103103
@@ -113,7 +113,7 @@ export default {
113113
114114
rowShift () {
115115
if (this.center) {
116-
let contentWidth = this.items.length * this.cellWidth
116+
let contentWidth = this.list.length * this.cellWidth
117117
let rowShift = contentWidth < this.gridResponsiveWidth
118118
? (this.gridResponsiveWidth - contentWidth) / 2
119119
: (this.gridResponsiveWidth % this.cellWidth) / 2

0 commit comments

Comments
 (0)