Skip to content

Commit 7a6adaa

Browse files
authored
Merge pull request jbaysolutions#131 from daizengyu123/master
fixed jbaysolutions#130
2 parents 8a88b54 + 8f993f1 commit 7a6adaa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/GridLayout.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@
187187
},
188188
methods: {
189189
layoutUpdate() {
190-
if (this.layout !== undefined && this.layout.length !== this.lastLayoutLength) {
191-
// console.log("### LAYOUT UPDATE!");
192-
this.lastLayoutLength = this.layout.length;
190+
if (this.layout !== undefined) {
191+
if (this.layout.length !== this.lastLayoutLength) {
192+
//console.log("### LAYOUT UPDATE!");
193+
this.lastLayoutLength = this.layout.length;
194+
}
193195
compact(this.layout, this.verticalCompact);
194-
195-
//this.$broadcast("updateWidth", this.width);
196196
this.eventBus.$emit("updateWidth", this.width);
197197
this.updateHeight();
198198
}

0 commit comments

Comments
 (0)