Skip to content

Commit 8f993f1

Browse files
authored
jbaysolutions#130 correction
1 parent 2ee7c8c commit 8f993f1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/GridLayout.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,15 @@
185185
},
186186
methods: {
187187
layoutUpdate() {
188-
if (this.layout !== undefined && this.layout.length !== this.lastLayoutLength) {
189-
// console.log("### LAYOUT UPDATE!");
190-
this.lastLayoutLength = this.layout.length;
191-
//this.$broadcast("updateWidth", this.width);
188+
if (this.layout !== undefined) {
189+
if (this.layout.length !== this.lastLayoutLength) {
190+
//console.log("### LAYOUT UPDATE!");
191+
this.lastLayoutLength = this.layout.length;
192+
}
193+
compact(this.layout, this.verticalCompact);
194+
this.eventBus.$emit("updateWidth", this.width);
195+
this.updateHeight();
192196
}
193-
compact(this.layout, this.verticalCompact);
194-
this.eventBus.$emit("updateWidth", this.width);
195-
this.updateHeight();
196197
},
197198
updateHeight: function () {
198199
this.mergedStyle = {

0 commit comments

Comments
 (0)