Skip to content

fix(igxGrid): Fix offset when using virtual scrollbar with ratio.#16346

Merged
dkamburov merged 10 commits intomasterfrom
mkirova/fix-16292-master
Apr 6, 2026
Merged

fix(igxGrid): Fix offset when using virtual scrollbar with ratio.#16346
dkamburov merged 10 commits intomasterfrom
mkirova/fix-16292-master

Conversation

@MayaKirova
Copy link
Copy Markdown
Contributor

@MayaKirova MayaKirova commented Oct 22, 2025

Closes #16292
Closes #16408

In case scrollbar size exceeds max browser allowed and uses ratio to calc. positions, adjust offset of merged cells accordingly.

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@mddragnev
Copy link
Copy Markdown
Member

#16408 Is still reproducible on my end here

@MayaKirova
Copy link
Copy Markdown
Contributor Author

#16408 Is still reproducible on my end here

Should be fixed now.

mddragnev
mddragnev previously approved these changes Nov 26, 2025
@github-actions
Copy link
Copy Markdown

There has been no recent activity and this PR has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label Jan 26, 2026
@dkamburov dkamburov removed the status: inactive Used to stale issues and pull requests label Jan 26, 2026
@github-actions
Copy link
Copy Markdown

There has been no recent activity and this PR has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label Mar 28, 2026
@dkamburov dkamburov added version: 21.2.x and removed version: 20.2.x status: inactive Used to stale issues and pull requests labels Apr 2, 2026
@IMinchev64 IMinchev64 added 💥 status: in-test PRs currently being tested and removed ❌ status: awaiting-test PRs awaiting manual verification labels Apr 3, 2026
@IMinchev64
Copy link
Copy Markdown
Contributor

Can you please resolve conflicts and create a PR for 21.1.x as well?

Copilot AI review requested due to automatic review settings April 3, 2026 14:02
@IMinchev64 IMinchev64 added ✅ status: verified Applies to PRs that have passed manual verification and removed 💥 status: in-test PRs currently being tested labels Apr 3, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses grid cell-merging layout issues when using very large virtual scroll sizes that exceed browser limits, causing the virtual scrollbar to operate with a ratio and requiring offset calculations to use the virtual scroll position.

Changes:

  • Adjusts virtualization logic to account for _virtRatio when clamping/setting scrollbar positions and when calculating view offsets.
  • Updates merged-cell “top retained row” offset calculations to use the virtual scroll position instead of the real scrollbar position.
  • Adds/uses an index field on merge-result records to avoid repeated lookups and to help identify merge roots.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
projects/igniteui-angular/grids/grid/src/grid.pipes.ts Switches unmerge-active logic to use merge-result index instead of indexOf.
projects/igniteui-angular/grids/grid/src/grid-base.directive.ts Uses virtual scroll position for merged-row offset; refactors merged data-in-view tracking.
projects/igniteui-angular/directives/src/directives/for-of/for_of.directive.ts Fixes ratio-based scroll position handling; adjusts scroll offset updates; exposes virtual scroll position.
projects/igniteui-angular/core/src/data-operations/merge-strategy.ts Adds an index field to default merge result records.

@dkamburov dkamburov requested a review from mddragnev April 6, 2026 14:27
@dkamburov dkamburov merged commit 58e6489 into master Apr 6, 2026
10 checks passed
@dkamburov dkamburov deleted the mkirova/fix-16292-master branch April 6, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

grid: cell-merging version: 21.2.x ✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

5 participants