PDA

View Full Version : [CLOSED] Sencha Touch 1.1 Ext.'Element.setVisible



bluehipy
8 Feb 2012, 6:35 AM
setVisible : function(visible, animate) { var me = this, dom = me.dom, mode = this.getVisibilityMode(); switch (mode) { case El.VISIBILITY: this.removeCls(['x-hidden-display', 'x-hidden-offsets']); this[visible ? 'removeCls' : 'addCls']('x-hidden-visibility'); break; case El.DISPLAY: this.removeCls(['x-hidden-visibility', 'x-hidden-offsets']); this[visible ? 'removeCls' : 'addCls']('x-hidden-display'); break; case El.OFFSETS: this.removeCls(['x-hidden-visibility', 'x-hidden-display']); this[visible ? 'removeCls' : 'addCls']('x-hidden-offsets'); break; } return me; }

Methd setVisible ignores the animate parameter.

mitchellsimoens
8 Feb 2012, 8:59 AM
Thanks for the report.