git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.0.3 - Released 10/11/2009
[extjs.git]
/
src
/
widgets
/
layout
/
AccordionLayout.js
diff --git
a/src/widgets/layout/AccordionLayout.js
b/src/widgets/layout/AccordionLayout.js
index
ac45b90
..
1c0a8d5
100644
(file)
--- a/
src/widgets/layout/AccordionLayout.js
+++ b/
src/widgets/layout/AccordionLayout.js
@@
-1,5
+1,5
@@
/*!
/*!
- * Ext JS Library 3.0.
0
+ * Ext JS Library 3.0.
3
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
@@
-7,8
+7,9
@@
/**
\r
* @class Ext.layout.AccordionLayout
\r
* @extends Ext.layout.FitLayout
\r
/**
\r
* @class Ext.layout.AccordionLayout
\r
* @extends Ext.layout.FitLayout
\r
- * <p>This is a layout that contains multiple panels in an expandable accordion style such that only
\r
- * <b>one panel can be open at any given time</b>. Each panel has built-in support for expanding and collapsing.
\r
+ * <p>This is a layout that manages multiple Panels in an expandable accordion style such that only
\r
+ * <b>one Panel can be expanded at any given time</b>. Each Panel has built-in support for expanding and collapsing.</p>
\r
+ * <p>Note: Only Ext.Panels <b>and all subclasses of Ext.Panel</b> may be used in an accordion layout Container.</p>
\r
* <p>This class is intended to be extended or created via the <tt><b>{@link Ext.Container#layout layout}</b></tt>
\r
* configuration property. See <tt><b>{@link Ext.Container#layout}</b></tt> for additional details.</p>
\r
* <p>Example usage:</p>
\r
* <p>This class is intended to be extended or created via the <tt><b>{@link Ext.Container#layout layout}</b></tt>
\r
* configuration property. See <tt><b>{@link Ext.Container#layout}</b></tt> for additional details.</p>
\r
* <p>Example usage:</p>
\r
@@
-117,6
+118,14
@@
Ext.layout.AccordionLayout = Ext.extend(Ext.layout.FitLayout, {
c.header.addClass('x-accordion-hd');
\r
c.on('beforeexpand', this.beforeExpand, this);
\r
},
\r
c.header.addClass('x-accordion-hd');
\r
c.on('beforeexpand', this.beforeExpand, this);
\r
},
\r
+
\r
+ onRemove: function(c){
\r
+ Ext.layout.AccordionLayout.superclass.onRemove.call(this, c);
\r
+ if(c.rendered){
\r
+ c.header.removeClass('x-accordion-hd');
\r
+ }
\r
+ c.un('beforeexpand', this.beforeExpand, this);
\r
+ },
\r
\r
// private
\r
beforeExpand : function(p, anim){
\r
\r
// private
\r
beforeExpand : function(p, anim){
\r