Parcourir la source

Table: equal behaviour for height and max-height (#14660)

Arthur Denner il y a 6 ans
Parent
commit
9c620409fc
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      packages/table/src/table.vue

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

@@ -585,9 +585,7 @@
           };
         } else if (this.maxHeight) {
           return {
-            'max-height': (this.showHeader
-              ? this.maxHeight - this.layout.headerHeight - this.layout.footerHeight
-              : this.maxHeight - this.layout.footerHeight) + 'px'
+            'max-height': this.layout.bodyHeight ? this.layout.bodyHeight + 'px' : ''
           };
         }
         return {};