Skip to content

Commit 2ee7c8c

Browse files
author
daizengyu
committed
1 parent 4358d8e commit 2ee7c8c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/GridLayout.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,11 @@
188188
if (this.layout !== undefined && this.layout.length !== this.lastLayoutLength) {
189189
// console.log("### LAYOUT UPDATE!");
190190
this.lastLayoutLength = this.layout.length;
191-
compact(this.layout, this.verticalCompact);
192-
193191
//this.$broadcast("updateWidth", this.width);
194-
this.eventBus.$emit("updateWidth", this.width);
195-
this.updateHeight();
196192
}
193+
compact(this.layout, this.verticalCompact);
194+
this.eventBus.$emit("updateWidth", this.width);
195+
this.updateHeight();
197196
},
198197
updateHeight: function () {
199198
this.mergedStyle = {

0 commit comments

Comments
 (0)