Skip to content

DataTable: Layout breaks on column resize when using features ColGroup and FlexScroll and ColResize at once #2723

@HenningLanghorst

Description

@HenningLanghorst

I'm submitting a ... (check one with "x")

[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Current behavior
The behavior can be reproduced the code sandbox.

When I resize a column in the given example, the layout of the columns in the table body will not match the layout of the table header.

Expected behavior
The columns in the table body have the same width as the according header columns.

Minimal reproduction of the problem with instructions

STEPS TO REPRODUCE

  • open the code sandbox
  • decrease the width of the "Product" column.

→ The column widths in the table body do not match the ones in the header.

  • React version:
    17.0.2

  • PrimeReact version:
    7.2.1

  • Browser: Chrome 100.0.4896.60 | Firefox 98.0.2, 99.0

  • Language: ES6/7

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a defect related to a specific component.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions