Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

fix(datatable, cell): consistency when multiple frozen columns exist …#8180

Merged
melloware merged 2 commits into
primefaces:masterfrom
kaylaa0:fix/issue-8107
Jul 30, 2025
Merged

fix(datatable, cell): consistency when multiple frozen columns exist …#8180
melloware merged 2 commits into
primefaces:masterfrom
kaylaa0:fix/issue-8107

Conversation

@kaylaa0

@kaylaa0 kaylaa0 commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Defect Fixes

Issue

  • There was a performance update which caused prev.style.left to be inaccessible during cell initialization.
  • This issue caused cells and headers to behave differently as cells are initialized with a different algorithm since performance update.
  • The alignment only checked previous cell while ignoring if there were gaps in between frozen cells.

Solution

  • Set element.current.style.left manually while initializing so we can access it from the next cell initialization.
  • Create a loop to detect gaps in between frozen cells and align correctly.

Result / Test Cases

  • When there are multiple frozen cells next to each other they align properly.
  • When there are gaps in between cells they align next to the previous frozen cell.

Above cases are tested and working correctly for left aligned frozen cases.

kaylaa0 added 2 commits July 30, 2025 11:50
…and better alignment when there are non-frozen columns in between frozen columns
@melloware melloware merged commit 24b8fd5 into primefaces:master Jul 30, 2025
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataTable: Multiple frozen columns - Headers freeze but data columns don't align properly

2 participants