-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Issue with frozen columns #12408 #15302
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Hello Prime team, |
recalculateColumns() { | ||
const siblings = DomHandler.siblings(this.el.nativeElement); | ||
const index = DomHandler.index(this.el.nativeElement); | ||
const time = (siblings.length - index + 1) * 50; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why multiply by 50?
recalculateColumns() { | ||
const siblings = DomHandler.siblings(this.el.nativeElement); | ||
const index = DomHandler.index(this.el.nativeElement); | ||
const time = (siblings.length - index + 1) * 50; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line only work for alignFrozen='right'. And this created new issue #15852.
Defect Fixes
Fixes #15303
Describe the bug
Video with the actual issue attached
Screen.Recording.2022-12-20.at.14.07.52.mov
Environment
Frozen Columns
Reproducer
Lolibai
Angular version
17.3.1
PrimeNG version
17.13.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.12.2
Browser(s)
Chrome 123.0.6312.123
Steps to reproduce the behavior
Screen.Recording.2022-12-20.at.14.07.52.mov
Expected behavior
All columns should be freezed as per attribute and directive assignment.
Stackblitz
Reproduction