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

Have the DataGrid syncViewport when receiving a DataModel.ChangedArgs signal of type "rows-moved" or "columns-moved" #94

Merged
merged 1 commit into from Jul 21, 2020

Conversation

ghost
Copy link

@ghost ghost commented Jul 21, 2020

Hi, my name is Logan McNichols. I am an intern for Jupyter Cal Poly, working with @kgoo124 and @ryuntalan to develop a tabular data editor powered by the DataGrid.

We noticed that submitting a 'rows-moved' or 'columns-moved' signal to the DataGrid does not seem to update it visually. I believe this is because, unlike the methods which handle adding or removing rows or columns, the methods _onRowsMoved and _onColumnsMoved do not call _syncViewport() .

This pull request would replace _onRowsMoved and _onColumnsMoved call to _repaintOverlay with a call to _syncViewport. It would also update the comments above these lines of code to reflect the change.

Fixes #93

…m this._repaintOverlay(); to this._syncViewport();. Changed the commented lines above these commands to reflect the change
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@blink1073 blink1073 merged commit 8a4c821 into jupyterlab:master Jul 21, 2020
@ghost
Copy link
Author

ghost commented Jul 21, 2020

Thank you!

@blink1073
Copy link
Member

Published as @lumino/datagrid@0.11.1

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants