-
Notifications
You must be signed in to change notification settings - Fork 460
[DataGrid] Fix resize indicator height (when ResizeColumnOnAllRows is true) #4383
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
Conversation
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
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.
Pull request overview
This PR fixes the height calculation for the resize indicator in the DataGrid component when ResizeColumnOnAllRows is set to true (issue #4378). The fix involves removing excessive padding from header cells and adjusting the positioning logic to properly align the resize handle.
Key changes:
- Removed CSS padding from column headers that was causing incorrect height calculations
- Adjusted min-height from 44px to 40px to compensate for the removed padding
- Updated resize handle positioning to be dynamically calculated based on the actual offset and DataGridDisplayMode
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| FluentDataGridCell.razor.css | Removed padding from .column-header class to fix height calculation |
| FluentDataGridCell.razor.cs | Reduced min-height from 44px to 40px to account for removed padding |
| FluentDataGrid.razor.js | Updated resize handle creation logic to dynamically calculate top position and adjusted height calculations |
| FluentDataGrid.razor.css | Removed hardcoded top: 5px from .resize-handle to allow dynamic positioning |
| FluentDataGrid.razor | Added dynamic top position calculation based on DataGridDisplayMode (4px for Table, 2px for Grid) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
…crosoft/fluentui-blazor into users/vnbaaij/fix-issue-#4378
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 61.3%
|
…crosoft/fluentui-blazor into users/vnbaaij/fix-issue-#4378
…lRows is true) (#4392) * Port #4383 to v5 * Update verified files * Remove IssueTester work. We'll do that later * Process comments --------- Co-authored-by: Denis Voituron <[email protected]>
Fix #4378. The height calculation was don alright already by the header height was set too high because of a padding value. The padding has now been removed. Because of the removed padding, the top of the resize indicator needs to be set dependent on the DataGridDisplayMode