Skip to content

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