From c56e4d3f18d89f904b209aaabfacee0f10a9b9fa Mon Sep 17 00:00:00 2001 From: Raimund Bauer Date: Wed, 16 Oct 2024 14:02:10 +0200 Subject: [PATCH] fix horizontal scrolling when columns are frozen and resizable --- packages/primevue/src/datatable/style/DataTableStyle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/primevue/src/datatable/style/DataTableStyle.js b/packages/primevue/src/datatable/style/DataTableStyle.js index 6c0023daa..c4a329228 100644 --- a/packages/primevue/src/datatable/style/DataTableStyle.js +++ b/packages/primevue/src/datatable/style/DataTableStyle.js @@ -73,7 +73,7 @@ const theme = ({ dt }) => ` white-space: nowrap; } -.p-datatable-resizable-table > .p-datatable-thead > tr > th.p-datatable-resizable-column { +.p-datatable-resizable-table > .p-datatable-thead > tr > th.p-datatable-resizable-column:not(.p-datatable-frozen-column) { background-clip: padding-box; position: relative; } @@ -616,7 +616,7 @@ const classes = { 'p-datatable-header-cell', { 'p-datatable-sortable-column': instance.columnProp('sortable'), - 'p-datatable-resizable-column': instance.resizableColumns, + 'p-datatable-resizable-column': instance.isResizable, // instance.resizableColumns, 'p-datatable-column-sorted': instance.isColumnSorted(), 'p-datatable-frozen-column': instance.columnProp('frozen'), 'p-datatable-reorderable-column': props.reorderableColumns