PDA

View Full Version : [OPEN] Ext.Element.repaint improvement



daanlib
12 Feb 2012, 3:27 AM
At the moment the Ext.Element.repaint method always repaints a DOM element twice if called. (once by adding the "x-repaint" class and once by removing it in a setTimeout.

I propose rewriting it like this:



repaint: function(){
this.toggleCls(Ext.baseCSSPrefix + 'repaint');
return this;
}


That way the element only gets repainted once.

mitchellsimoens
12 Feb 2012, 9:32 AM
Thank you, we will look into this.