Skip to content

T1335911 - DataGrid — Incorrect column resize separator position when resizing a column fixed to the right if another column is behind it - #35364

Open
bit-byte0 wants to merge 4 commits into
DevExpress:mainfrom
bit-byte0:fix/t1335911-sticky-right-resize-separator
Open

bit-byte0 wants to merge 4 commits into
DevExpress:mainfrom
bit-byte0:fix/t1335911-sticky-right-resize-separator

Conversation

@bit-byte0

Copy link
Copy Markdown
Contributor

What

The column resize separator now lands at the correct position when you resize a column fixed to the right in DataGrid and TreeList with sticky columns, instead of appearing outside the grid

How

In the sticky columns resizer, when the resized column is immediately followed by a column pinned to the right, the separator is anchored to that pinned column's left edge

@bit-byte0
bit-byte0 requested a review from a team as a code owner September 27, 2026 22:21
Copilot AI lite review requested due to automatic review settings September 27, 2026 22:21
@bit-byte0 bit-byte0 added the 26_2 label Sep 27, 2026
@bit-byte0 bit-byte0 self-assigned this Sep 27, 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

🟡 Changes recommended

One or more issues must be addressed before approval.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates sticky-column separator positioning for DataGrid and TreeList column resizing.

Changes:

  • Anchors separators to the next right-pinned column when applicable.
  • Adds Jest coverage for sticky resizer offset behavior.
File Description
packages/​devextreme/​js/​__internal/​grids/​grid_core/​sticky_columns/​m_sticky_columns.ts Updated as part of this pull request.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​sticky_columns/​__tests__/​m_sticky_columns.columns_resizer.test.ts Updated as part of this pull request.

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

@Alyar666
Alyar666 self-requested a review September 29, 2026 09:28
&& GridCoreStickyColumnsDom.isFixedCellPinnedToRight($nextCell, $container, addWidgetPrefix);

if (isNextCellPinnedToRight) {
return $nextCell.offset()?.left ?? 0;

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.

The RTL mode is not taken into account. Also, just in case, please check the resizing behavior with the following functionality:

  • columnResizingMode: 'widget'
  • Band columns
  • Adaptability

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

checked RTL, widget mode, band columns and adaptivity in the browser - the separator tracks the column edge in each, so RTL needs no special handling here

return $cell.offset()?.left ?? 0;
}

const $nextCell = $cell.next();

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.

It would be better to get the next column by index using either _resizingInfo.nextColumnIndex or _getNextColumnIndex(currentColumnIndex).

Copilot AI review requested due to automatic review settings September 29, 2026 13:03

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

🔵 Needs a closer look

One or more issues must be addressed before approval.

Review effort: Lite
Findings: None

Resolved since last review (1)

Copilot AI review requested due to automatic review settings September 29, 2026 13:30

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

No unresolved issues were identified that would block approval.

Review effort: Lite
Findings: None

@Alyar666
Alyar666 self-requested a review September 29, 2026 18:04
Copilot AI lite review requested due to automatic review settings September 29, 2026 23:20

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

No unresolved issues were identified that would block approval.

Review effort: Lite
Findings: None

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants