From: <ga...@us...> - 2010-05-10 23:35:39
|
Revision: 4442 http://jaffa.svn.sourceforge.net/jaffa/?rev=4442&view=rev Author: gautamj Date: 2010-05-10 23:35:33 +0000 (Mon, 10 May 2010) Log Message: ----------- (On behalf of ChrisO): Upgraded to ExtJS-3.2.1: Creates a listener on a panel, that is initially collapsed, that will layout child elements when expanding. This fixes the issue in extjs-3.1, which doesn't correctly layout the collapsed elements. Modified Paths: -------------- trunk/JaffaRIA/source/html/js/extjs/ext-overrides.js Modified: trunk/JaffaRIA/source/html/js/extjs/ext-overrides.js =================================================================== --- trunk/JaffaRIA/source/html/js/extjs/ext-overrides.js 2010-05-10 22:24:17 UTC (rev 4441) +++ trunk/JaffaRIA/source/html/js/extjs/ext-overrides.js 2010-05-10 23:35:33 UTC (rev 4442) @@ -597,3 +597,21 @@ state.filters = filters; } }); + + +/* + * Creates a listener on a panel, that is initially collapsed, that will layout child elements when expanding. + * This fixes the issue in extjs-3.1, which doesn't correctly layout the collapsed elements. + */ +Ext.override(Ext.Panel, { + doLayout: function() { + var a = arguments; + if (this.collapsed) { + this.on('expand', function() { + this.doLayout.apply(this, a); + }, this, {single: true}); + return; + } + Ext.Panel.superclass.doLayout.apply(this, a); + } +}); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |