Skip to content

[FOR REVIEW ONLY] Column resizing controlled WIP #2784

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

Closed
wants to merge 12 commits into from

Conversation

dnorth
Copy link
Contributor

@dnorth dnorth commented Jan 28, 2022

[THIS PR IS A BROKEN WIP AND IS ONLY MEANT FOR REVIEW/HELP AND NOT MERGING]

We are implementing column resizing for TableView and to follow this spec (#2555) we am implementing a controlled version of this behavior including an onResize callback.

I am running into an error that I don't understand in regards to tablelayout when I try to create a storybook which utilizes this. (Storybook "Resizable columns, controlled")

image

The error is regarding the virtualizer and so it's extremely hard to debug for someone who is not familiar with it, but I suspect that it might have something to do with the way that the controlled component is being implemented or utilized. But because the error of the Virtualizer is happening i'm not sure how to continue, so I am hoping someone who is more experienced with this codebase can take a look at this and better understand what might be happening.

Thanks in advance!

@dnorth dnorth force-pushed the columnResizing-controlled branch from 86b25dd to 14531b4 Compare January 28, 2022 19:04
Copy link
Member

@snowystinger snowystinger left a comment

Choose a reason for hiding this comment

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

Strange question, but what are all the Slider changes? i don't see you making use of useSliderThumb, SliderThumb, and useSliderState anywhere outside of their respective packages. Definitely not in any of the Table or Resizer modules.

Looks like prettier maybe got to them? Might help us help you if you can remove noise from the PR, including in the file TableView.tsx, it's very hard to focus on what you're actually doing

@dnorth
Copy link
Contributor Author

dnorth commented Jan 31, 2022

Good catch @snowystinger . I didn't realize the prettier changes made it through

@dnorth dnorth closed this Feb 23, 2022
@dnorth dnorth deleted the columnResizing-controlled branch February 23, 2022 21:16
@dnorth
Copy link
Contributor Author

dnorth commented Feb 23, 2022

Deleted the branch which closed this WIP PR. This is not the true code.

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.

2 participants