Skip to content

DataGrid: Fix the column headers scroll position reset in RTL mode with native scrolling - #35503

Merged
Alyar666 merged 1 commit into
DevExpress:mainfrom
Alyar666:rtl_header_scroll_position_26_2
Oct 6, 2026
Merged

Alyar666 merged 1 commit into
DevExpress:mainfrom
Alyar666:rtl_header_scroll_position_26_2

Conversation

@Alyar666

@Alyar666 Alyar666 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Alyar666 Alyar666 self-assigned this Oct 6, 2026
Copilot AI balanced review requested due to automatic review settings October 6, 2026 09:45
@Alyar666
Alyar666 requested a review from a team as a code owner October 6, 2026 09:45
@Alyar666 Alyar666 added the 26_2 label Oct 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused sentinel correction is consistent with existing synchronization logic and has appropriate regression coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes DataGrid column-header scroll restoration for negative RTL native-scroll positions.

Changes:

  • Uses undefined as the uninitialized scroll-position sentinel.
  • Restores all defined positions, including negative RTL offsets.
  • Adds Jest integration and TestCafe regression coverage for render, resize, and repaint.
File Description
packages/​devextreme/​js/​__internal/​grids/​grid_core/​views/​m_columns_view.ts Preserves negative header scroll offsets.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​views/​__tests__/​columns_view.scroll_position.integration.test.ts Tests RTL and LTR restoration behavior.
e2e/​testcafe-devextreme/​tests/​dataGrid/​common/​scrolling.ts Verifies RTL native scrolling after resize and repaint.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Alyar666
Alyar666 added this pull request to the merge queue Oct 6, 2026
Merged via the queue into DevExpress:main with commit 4f06959 Oct 6, 2026
197 of 208 checks passed
@Alyar666
Alyar666 deleted the rtl_header_scroll_position_26_2 branch October 6, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants