Opened 12 years ago
Closed 12 years ago
#8265 closed defect (wontfix)
Charts only work in first tab of TabContainers
Reported by: | smethurst | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Charting | Version: | 1.2.3 |
Keywords: | TabContainer Chart | Cc: | |
Blocked By: | Blocking: |
Description
In FF3, attempting to draw a chart in a tab other than the first one results in bad SVG.
Attachments (1)
Change History (4)
Changed 12 years ago by
Attachment: | chart.html added |
---|
comment:1 Changed 12 years ago by
Eugene, maybe you can add a resize() method to the chart widget, to make it redraw? ContentPane calls resize() on child widgets when the tab is selected and made visible. Admittedly, the method name is confusing (would have been better if it were called redraw(), but that's water under the bridge.
comment:2 Changed 12 years ago by
Status: | new → assigned |
---|
There is resize() method on the chart already. It ... resizes the chart.
comment:3 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
severity: | major → normal |
Status: | assigned → closed |
@smethurst: Almost all underlying renderers have problems when created and drawn while invisible (e.g., hidden), so it is not supported. Wait till the tab/dialog/accordion/whatever-you-have is visible/current, than draw your chart. Incidentally it reduces the startup time of your web application too.
Sample html file.