View Full Version : [OPEN] [4.0.6] Ext.draw - inconsistent API (VML and SVG) when adding sprites dynamically

28 Nov 2011, 8:08 AM
I found a certain inconsistency between VML and SVG in the Ext.draw API, which I think is a bug.

The redraw parameter is optional (false) in VML, but it must be true in SVG; otherwise the dynamically added sprite will not show.

For testing, I used IE7 and FF 8 on Win XP.

Ext.create('Ext.draw.Component', {
renderTo: Ext.getBody(),
height: 400,
width: 400,
listeners: {
afterrender: function (cmp) {
type: 'rect',
width: 20,
height: 20,
fill: '#f00',
x: 10,
y: 10
}).show(false); // redraw can be false in VML, must be true in SVG (or the sprite will not show)

28 Nov 2011, 12:59 PM
Yeah... I think the engine should automatically do that. Thank you for the report.