I embed a dynamic SVG chart on a new content Panel using
I have a multitab region with one graph in each tab. I can interact with the active chart selecting ranges, colors, scales, etc. When I activate another tab, the corresponding svg is reloaded again, so that all previous changes are lost (it happens in FireFox, it does not happen in IE).
var idNewTab = Ext.id();
var cp = new Ext.ContentPanel
"<embed id='svg' src='graph.svg' width='600' height='400' />";
I have found that changing the showAction function from Ext.TabPanelItem
in order to use "absolute" instead of the original "relative" the SVG is not reloaded when activating tabs. I wonder if there is another way of bypassing the problem or if changing the ExtJS source to use "absolute" could cause problems in other places.
showAction : function()