File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 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 = {
You can’t perform that action at this time.
0 commit comments