Skip to content
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

Fix drag handle position when frozen column is resized #3352

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

amanmahajan7
Copy link
Contributor

Fixes #3351

@amanmahajan7 amanmahajan7 self-assigned this Oct 2, 2023
@@ -127,8 +127,8 @@ export default function DragHandle<R, SR>({
...style,
gridRowStart,
insetInlineStart:
style.insetInlineStart && typeof column.width === 'number'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were not using the calculated width

@codecov
Copy link

codecov bot commented Oct 2, 2023

Codecov Report

Merging #3352 (15b4b16) into main (c609bcb) will increase coverage by 0.03%.
The diff coverage is 84.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3352      +/-   ##
==========================================
+ Coverage   82.87%   82.90%   +0.03%     
==========================================
  Files          47       47              
  Lines        5052     5061       +9     
  Branches      782      788       +6     
==========================================
+ Hits         4187     4196       +9     
  Misses        865      865              
Files Coverage Δ
src/DataGrid.tsx 88.74% <100.00%> (+0.11%) ⬆️
src/hooks/useCalculatedColumns.ts 96.56% <100.00%> (-0.04%) ⬇️
src/DragHandle.tsx 71.42% <33.33%> (ø)

@amanmahajan7 amanmahajan7 marked this pull request as ready for review October 2, 2023 14:18
@amanmahajan7 amanmahajan7 requested a review from nstepien as a code owner October 2, 2023 14:18
@amanmahajan7 amanmahajan7 merged commit cf88802 into main Oct 2, 2023
3 checks passed
@amanmahajan7 amanmahajan7 deleted the am-fix-drag branch October 2, 2023 16:02
adityatoshniwal pushed a commit to pgadmin-org/react-data-grid that referenced this pull request Jul 31, 2024
Fix drag handle posistion when frozen column is resized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cell drag handle is rendered at the wrong place
2 participants