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

Cannot drag sorted column #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeremydawson
Copy link

Fixed bug with dragging sortable columns. After a column was sorted, it could not be dragged to the right. It was possible to drag a column to the left of the sorted column; if the sorted column was subsequently dragged back to the left of the unsorted one, the sorted column would replace the unsorted column and there would be duplicate columns in the grid.

When the column is sorted, GWT inserts a div element into the table header, so getting the parent of the target element is not the table row. I simply changed the code that finds the table row to traverse the DOM until the parent tr is found.

Fixed bug with dragging sortable columns.  After a column was sorted, it could not be dragged to the right.  It was possible to drag a column to the left of the sorted column; if the sorted column was subsequently dragged back to the left of the unsorted one, the sorted column would replace the unsorted column and there would be duplicate columns in the grid.

When the column is sorted, GWT inserts a div element into the table header, so getting the parent of the target element is not the table row.  I simply changed the code that finds the table row to traverse the DOM until the parent tr is found.
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.

1 participant