I'm migrating my application from ExtJs 3 to ExtJs 4.
For drawing in my application I was using Raphael, now I want use the API of drawing that comes with ExtJs 4.
My problem is that I need extend the Ext.draw.Component for draw an especific set of graphic objects so that the components change of size dinamically when the draw component is resized. I implemented the next code:
for test this class i use the next code:
var xc=w/3, yc=h/3;
however, this not works!
width: 640,height: 480,
someone know why when I invoque the method add of the surface nothing happens?
in despite of that, if previously the draw component contains elements,and invoque the method removeAll on the afterComponentLayout overrided method, all the components are removed.
Is very strange that I can remove elements, but don't create elements dinamically!