I have an <a> tag which when clicked shows the modal window having a horizontal slider and a pie chart. When the user moves the slider the pie chart should get updated and the new allocation has to be shown indicating the selected value on the slider.

Change History (13)

Please attach test cases after filing the ticket using the attach file button. But also, can't you make a smaller test case? You have dozens of TitlePane's in your test which are apparently unrelated to the issue. Is this an issue with displaying charts inside a Dialog? Or does the same chart fail when just appearing on the page in general?

Please attach test cases after filing the ticket using the attach file button. But also, can't you make a smaller test case? You have dozens of TitlePane's in your test which are apparently unrelated to the issue. Is this an issue with displaying charts inside a Dialog? Or does the same chart fail when just appearing on the page in general?

Sorry for not attaching the test case earlier.

I have removed the title panes in the attached code.

Yes the issue is with rendering in the Dialog window, the pie chart renders properly if it is on the page.

Eugene - haven't looked at this code at all but (assuming it's still failing in trunk) probably it's a problem with the chart initializing while hidden and it can be solved by adding a resize() method to the chart that re-renders. Dialog will call resize() on it's children widgets when they are first shown.

Please attach test cases after filing the ticket using the attach file button. But also, can't you make a smaller test case? You have dozens of TitlePane's in your test which are apparently unrelated to the issue. Is this an issue with displaying charts inside a Dialog? Or does the same chart fail when just appearing on the page in general?

Hi,

I don't know if this helps in resolving the issue, but this code works fine with dojo 1.1.1.

Is there a way to fix this in javascript before calling .render() on the chart? I am running in to this issue on Dojo 1.4 and really need a fix for this. Can I fix without having to modify the charting widget directly?

This is a bug related to positioning of VML elements in some children of absolutely or relatively positioned nodes. So far there is no fix for. Patches are welcomed. Feel free to file a bug with Microsoft.

One possible solution is to host a chart in an iframe. Position the chart (inside the iframe) simply, like in tests. This iframe can be positioned with a dialog box or a content pane.