fix horizontal scrolling when columns are frozen and resizable

pull/6577/head
Raimund Bauer 2024-10-16 14:02:10 +02:00
parent e67726110f
commit c56e4d3f18
1 changed files with 2 additions and 2 deletions

View File

@ -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