-
Notifications
You must be signed in to change notification settings - Fork 295
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
Shift+left click selection breaks after scrolling a long way #705
Comments
This is due to the fact that The distance before which rows are removed is controlled by the Unfortunately, trying to fix this would be pretty onerous, since |
Hi Kenneth, Thanks for your response. I played around with farOffRemoval a bit, but this has some bad side effects when working with a list with a lot of rows. Without knowing too much about how Selection is designed, it seems to me that lazy row rendering should be orthogonal to whether a row is selected which would make it possible to do large range selections combined with lazy row rendering. As you said, it would be nice to at least make sure that no errors occur when this happens. E.g. selecting a row too far off would then just behave as if it were the first selection. Now all kind of funny stuff happens. Thanks, Ronald |
Hi Kenneth, To work around getting an exeption over and over, I added an extra check to see whether 'toRow' is defined after the call to 'toRow = this.row(toRow)'. This would be around line 503 in the current master.
Could you include this extra check until a more permanent solution is available? Thanks! Ronald |
Selection can't currently handle large selection ranges because it drops nodes that are far away from the currently visible range. Emit a warning rather than throwing an exception when this happens. Fixes dojo#705 (sort of)
Hi Ken, Thanks for integrating and improving the workaround. Ronald |
Use case:
The following exception happens at Selection.js:455 (dgrid v0.3.9)
Uncaught TypeError: Cannot read property 'element' of undefined
Some debugging shows that getting the row at line 453 fails because this.row(toRow) returns undefined. This seems to be caused by List._rowIdToObject no longer containing the requested row.
A workaround seems to be to set farOffRemoval to Infinity.
The text was updated successfully, but these errors were encountered: