diff --git a/src/components/datatable/ScrollableView.vue b/src/components/datatable/ScrollableView.vue
index 6481ad26a3..06281d551c 100755
--- a/src/components/datatable/ScrollableView.vue
+++ b/src/components/datatable/ScrollableView.vue
@@ -13,7 +13,7 @@
-
+
@@ -208,7 +208,13 @@ export default {
},
bodyTableStyle() {
return this.virtualScroll ? {top: '0'} : null;
- }
+ },
+ bodyStyle() {
+ return {
+ maxHeight: this.scrollHeight !== 'flex' ? this.scrollHeight: null,
+ overflowY: !this.frozen && this.scrollHeight ? 'scroll': null
+ }
+ }
},
components: {
'DTTableLoadingBody': TableLoadingBody