Explorar o código

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

Arthur Denner %!s(int64=6) %!d(string=hai) anos
pai
achega
9c620409fc
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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 {};