From 56feee491f0c87465aa217b5577393b681897668 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Mon, 22 Aug 2022 15:02:58 +0100 Subject: [PATCH] Fixed #2622 - Datatable rows are not the full width in scroll both mode --- src/components/datatable/DataTable.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 80f0323a2..afe4b388f 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -1072,7 +1072,7 @@ export default { }); } - + //footers let footerInitiated = false; for (let i = 0; i < this.columns.length; i++) { @@ -2050,7 +2050,7 @@ export default { .p-datatable-scrollable-horizontal .p-datatable-thead > tr > th .p-datatable-scrollable-horizontal .p-datatable-tbody > tr > td, .p-datatable-scrollable-horizontal .p-datatable-tfoot > tr > td { - flex: 0 0 auto; + flex: 1 0 auto; } .p-datatable-flex-scrollable {