Skip to content

T1303892 - DataGrid - Drag icon is vertically misaligned if column fixing is enabled in Generic Themes#34315

Open
bit-byte0 wants to merge 5 commits into
DevExpress:mainfrom
bit-byte0:fix/datagrid-drag-icon-sticky-columns
Open

T1303892 - DataGrid - Drag icon is vertically misaligned if column fixing is enabled in Generic Themes#34315
bit-byte0 wants to merge 5 commits into
DevExpress:mainfrom
bit-byte0:fix/datagrid-drag-icon-sticky-columns

Conversation

@bit-byte0

@bit-byte0 bit-byte0 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

What

Fixes vertical alignment of the row drag icon in DataGrid and TreeList with enabled column fixing: the icon is now centered and no longer shifts when a row is focused or selected.

Also fixes a related pre-existing defect in the fluent theme: a focused or selected row (without row lines) shrank by 1px, making the whole row and its content jump.

How

  • Excluded .dx-command-drag cells from the sticky-columns padding compensation rules in the generic, material, and fluent themes (the same pattern as the existing .dx-editor-cell exclusion)
  • In fluent, kept the padding-top compensation on focused rows: unlike generic/material (border on both sides of the highlighted row), fluent draws only a 1px bottom border, so dropping 2px of padding shrank the row
  • In fluent, added 1px padding-top to the drag cell in focused rows to mirror that bottom border - otherwise the middle-aligned icon rises half a pixel because the cell's content box shrinks from one side only

@bit-byte0
bit-byte0 requested a review from a team as a code owner July 15, 2026 10:43
@bit-byte0 bit-byte0 added the 26_2 label Jul 15, 2026
Copilot AI review requested due to automatic review settings July 15, 2026 10:43
@bit-byte0 bit-byte0 self-assigned this Jul 15, 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.

Pull request overview

Fixes vertical alignment of the row-drag handle icon in DataGrid/TreeList when sticky (fixed) columns are present, by excluding drag-command cells from sticky-columns padding compensation across supported themes. Also adds visual coverage and a Storybook scenario for review.

Changes:

  • Exclude .dx-command-drag cells from sticky-columns padding compensation in generic, material, and fluent grid base cell layouts.
  • Add a TestCafe screenshot test validating drag-icon centering in focused/selected rows.
  • Add a React Storybook example intended to showcase row dragging with column fixing.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/devextreme-scss/scss/widgets/material/gridBase/layout/cell.scss Excludes drag-command cells from sticky-columns padding compensation in Material theme.
packages/devextreme-scss/scss/widgets/generic/gridBase/layout/cell.scss Excludes drag-command cells from sticky-columns padding compensation in Generic theme.
packages/devextreme-scss/scss/widgets/fluent/gridBase/layout/cell.scss Excludes drag-command cells from sticky-columns padding compensation in Fluent theme.
e2e/testcafe-devextreme/tests/dataGrid/sticky/common/withDragAndDrop.ts Adds screenshot test for drag icon alignment under sticky columns + focus/selection.
apps/react-storybook/stories/examples/datagrid/DataGrid.stories.tsx Adds Storybook story for designer review of the row-dragging + column fixing scenario.

Comment thread apps/react-storybook/stories/examples/datagrid/DataGrid.stories.tsx
Copilot AI review requested due to automatic review settings July 15, 2026 11:26

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.

Pull request overview

Copilot reviewed 5 out of 8 changed files in this pull request and generated 3 comments.

Comment thread apps/react-storybook/stories/examples/datagrid/DataGrid.stories.tsx
Copilot AI review requested due to automatic review settings July 15, 2026 15:58
@bit-byte0
bit-byte0 force-pushed the fix/datagrid-drag-icon-sticky-columns branch from 99b09e2 to 1ba4ddb Compare July 15, 2026 15:58

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.

Pull request overview

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

Comment thread apps/react-storybook/stories/examples/datagrid/DataGrid.stories.tsx

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.

Pull request overview

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

Comment thread packages/devextreme-scss/scss/widgets/fluent/gridBase/layout/cell.scss Outdated
Comment thread apps/react-storybook/stories/examples/datagrid/DataGrid.stories.tsx
Copilot AI review requested due to automatic review settings July 16, 2026 10:11

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.

Pull request overview

Copilot reviewed 5 out of 8 changed files in this pull request and generated 3 comments.

Comment thread apps/react-storybook/stories/examples/datagrid/DataGrid.stories.tsx
Copilot AI review requested due to automatic review settings July 16, 2026 10:16

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.

Pull request overview

Copilot reviewed 5 out of 8 changed files in this pull request and generated 3 comments.

Comment thread packages/devextreme-scss/scss/widgets/fluent/gridBase/layout/cell.scss Outdated
Copilot AI review requested due to automatic review settings July 16, 2026 10:52
@bit-byte0
bit-byte0 force-pushed the fix/datagrid-drag-icon-sticky-columns branch from c1bf630 to 3439d89 Compare July 16, 2026 10:52

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.

Pull request overview

Copilot reviewed 5 out of 8 changed files in this pull request and generated 2 comments.

Comment thread apps/react-storybook/stories/examples/datagrid/DataGrid.stories.tsx
Copilot AI review requested due to automatic review settings July 16, 2026 11:25

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.

Pull request overview

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

Comment thread apps/react-storybook/stories/examples/datagrid/DataGrid.stories.tsx
anna-shakhova
anna-shakhova previously approved these changes Jul 16, 2026
Copilot AI review requested due to automatic review settings July 16, 2026 15:57

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.

Pull request overview

Copilot reviewed 5 out of 9 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings July 16, 2026 17:26
@bit-byte0
bit-byte0 force-pushed the fix/datagrid-drag-icon-sticky-columns branch from 50471ce to 0ae7946 Compare July 16, 2026 17:26

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.

Pull request overview

Copilot reviewed 5 out of 9 changed files in this pull request and generated 3 comments.

Comment thread apps/react-storybook/stories/examples/datagrid/DataGrid.stories.tsx
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