-
6 Dec 2012 8:08 AM #1
animCollapse: false not working when used in class definition
animCollapse: false not working when used in class definition
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.1
- FF 16.0.2
- Chromium 18.0.1
- When animCollapse: false is set in class definition it doesn't stop the animation. When used in config object of instance it prevents the animation.
- See fiddle below: Panel 1 is defined in class, panel 3 is defined with instance config (not sure about the terminology, sorry). Panel 1 is animated, panel 3 is not.
- Panel not animating when expanding/collapsing
- Panel animating when expanding/collapsing
HELPFUL INFORMATIONCode:Ext.define('panel1', { extend : 'Ext.panel.Panel', alias : 'widget.panel1', title : 'panel1', collapsible : true, animCollapse : false, // this should stop the animation titleCollapse : true, region : 'north', layout : 'fit', initComponent : function () { var me = this; //me.animCollapse = false;// comment this out to change the behaviour me.callParent(arguments); } }); Ext.application({ name : 'Test', launch : function() { new Ext.container.Container({ layout : 'border', width : 250, height : 500, renderTo : Ext.getBody(), items : [ { xtype : 'panel1', html : 'Will not work here' }, { xtype : 'panel', layout : 'fit', title : 'Panel 2', region : 'center', html : 'Panel 2 - center' }, { xtype : 'panel', layout : 'fit', title : 'Panel 3', collapsible : true, animCollapse : false, // this works titleCollapse : true, region : 'south', html : 'Panel 3 - south' } ] }); new panel1({ renderTo : document.body, html : 'Will work here' }); } });
Screenshot or Video:- none
Debugging already done:- none
- Use initComponent method and set animCollapse there (see fiddle)
- only default ext-all.css
- Ubuntu 11.04
Last edited by mitchellsimoens; 6 Dec 2012 at 8:43 AM. Reason: Added testcase to post
-
6 Dec 2012 8:43 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
Thanks for the report! I have opened a bug in our bug tracker.
-
6 Dec 2012 8:55 AM #3
You found a bug! We've classified it as
EXTJSIV-7936
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote