diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue
index 1148c516c2..69523da943 100755
--- a/src/components/datatable/DataTable.vue
+++ b/src/components/datatable/DataTable.vue
@@ -27,7 +27,7 @@
@column-click="onColumnHeaderClick($event)" @column-mousedown="onColumnHeaderMouseDown($event)" @filter-change="onFilterChange" @filter-apply="onFilterApply"
@column-dragstart="onColumnHeaderDragStart($event)" @column-dragover="onColumnHeaderDragOver($event)" @column-dragleave="onColumnHeaderDragLeave($event)" @column-drop="onColumnHeaderDrop($event)"
@column-resizestart="onColumnResizeStart($event)" @checkbox-change="toggleRowsWithCheckbox($event)" />
-
- {
+ !!el && (el.style.width = el.style.minWidth = tableWidth);
+ }
+
+ updateTableWidth(this.$refs.table);
+
+ if (!this.virtualScrollerDisabled) {
+ const body = this.$refs.bodyRef && this.$refs.bodyRef.$el;
+ const frozenBody = this.$refs.frozenBodyRef && this.$refs.frozenBodyRef.$el;
+
+ updateTableWidth(body);
+ updateTableWidth(frozenBody);
+ }
this.resizeTableCells(newColumnWidth);
}