Sfoglia il codice sorgente

Table: update column width before updating height (#10236)

杨奕 7 anni fa
parent
commit
38e9b6eca6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/table/src/table.vue

+ 1 - 1
packages/table/src/table.vue

@@ -438,10 +438,10 @@
       },
 
       doLayout() {
+        this.layout.updateColumnsWidth();
         if (this.shouldUpdateHeight) {
           this.layout.updateElsHeight();
         }
-        this.layout.updateColumnsWidth();
       }
     },