Ticket #8055 (closed defect: fixed)
Charting hangs browser when canvas is 0x0
| Reported by: | jaredj | Owned by: | elazutkin |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2.2 |
| Component: | Charting | Version: | 1.2.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
From a co-worker:
While trying to use charts within a floating pane widget I discovered that when the pane was "docked" and the chart's render() was called, the browser would lock up. After a little debug I figured out the problem was due to a canvas size of 0x0. This eventually leads to an infinite loop (divide by zero) in dojox.charting.scaler.linear at line 183:
while(while(next <= scaler.bounds.to + 1/scaler.bounds.scale){...}
Change History
Note: See
TracTickets for help on using
tickets.