invient-cp/InvientCharts — pull request #4 by S73417H (2012-06-28 10:43:35+00:00)
Title: Fixed chart re-attachment issue (solves PortalLayout incompatibilities).

The following code fixes a well known issue with InvientCharts being drag/dropped within a PortalLayout (provided by the PortalLayout) add-on.

The issue was caused by the chart destroying itself upon detach, and not re-instantiating its previous state on re-attach.

The fix that I have implemented simply caches the configuration when the chart is loaded and re-applies it to a new chart instance when the component is re-attached to a container.