Ticket #5730 (closed defect: invalid)
Grid resize can fail if parent node doesn't exist in 1.0.2 (fix for 4892 is incorrect)
| Reported by: | guest | Owned by: | BryanForbes |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | DojoX Grid | Version: | 1.0 |
| Severity: | major | Keywords: | |
| Cc: |
Description (last modified by toonetown) (diff)
While resizing my grids, I keep getting a "this.domNode has no properties" error from the VirtualGrid resize function.
The fix to ticket #4892 put the !this.domNode check too low down in the function, so it's after the line that checks !this.domNode.parentNode.
The if (!this.domNode) return; line added in changelist r11308 should be removed, and the if (!this.domNode.parentNode) at the start of the function should be changed to if (!this.domNode || !this.domNode.parentNode) return; to make sure this.domNode exists before trying to use it.
Change History
Note: See
TracTickets for help on using
tickets.