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 4.0.7 - Released 10/19/2011
[extjs.git]
/
src
/
layout
/
container
/
AbstractContainer.js
diff --git
a/src/layout/container/AbstractContainer.js
b/src/layout/container/AbstractContainer.js
index
9c72c9b
..
7ec5758
100644
(file)
--- a/
src/layout/container/AbstractContainer.js
+++ b/
src/layout/container/AbstractContainer.js
@@
-16,8
+16,8
@@
If you are unsure which license is appropriate for your use, please contact the
* @class Ext.layout.container.AbstractContainer
* @extends Ext.layout.Layout
* Please refer to sub classes documentation
* @class Ext.layout.container.AbstractContainer
* @extends Ext.layout.Layout
* Please refer to sub classes documentation
+ * @private
*/
*/
-
Ext.define('Ext.layout.container.AbstractContainer', {
/* Begin Definitions */
Ext.define('Ext.layout.container.AbstractContainer', {
/* Begin Definitions */
@@
-44,7
+44,7
@@
Ext.define('Ext.layout.container.AbstractContainer', {
* @cfg {String} itemCls
* <p>An optional extra CSS class that will be added to the container. This can be useful for adding
* customized styles to the container or any of its children using standard CSS rules. See
* @cfg {String} itemCls
* <p>An optional extra CSS class that will be added to the container. This can be useful for adding
* customized styles to the container or any of its children using standard CSS rules. See
- * {@link Ext.Component}.{@link Ext.Component#c
tCls c
tCls} also.</p>
+ * {@link Ext.Component}.{@link Ext.Component#c
omponentCls componen
tCls} also.</p>
* </p>
*/
* </p>
*/
@@
-63,26
+63,33
@@
Ext.define('Ext.layout.container.AbstractContainer', {
/**
* <p>Returns an array of child components either for a render phase (Performed in the beforeLayout method of the layout's
* base class), or the layout phase (onLayout).</p>
/**
* <p>Returns an array of child components either for a render phase (Performed in the beforeLayout method of the layout's
* base class), or the layout phase (onLayout).</p>
- * @return {
Array
} of child components
+ * @return {
Ext.Component[]
} of child components
*/
getLayoutItems: function() {
return this.owner && this.owner.items && this.owner.items.items || [];
},
*/
getLayoutItems: function() {
return this.owner && this.owner.items && this.owner.items.items || [];
},
+ /**
+ * Containers should not lay out child components when collapsed.
+ */
+ beforeLayout: function() {
+ return !this.owner.collapsed && this.callParent(arguments);
+ },
+
afterLayout: function() {
this.owner.afterLayout(this);
},
/**
* Returns the owner component's resize element.
afterLayout: function() {
this.owner.afterLayout(this);
},
/**
* Returns the owner component's resize element.
- * @return {Ext.
core.
Element}
+ * @return {Ext.Element}
*/
getTarget: function() {
return this.owner.getTargetEl();
},
/**
*/
getTarget: function() {
return this.owner.getTargetEl();
},
/**
- * <p>Returns the element into which rendering must take place. Defaults to the owner Container's
{@link Ext.AbstractComponent#targetEl}
.</p>
+ * <p>Returns the element into which rendering must take place. Defaults to the owner Container's
target element
.</p>
* May be overridden in layout managers which implement an inner element.
* May be overridden in layout managers which implement an inner element.
- * @return {Ext.
core.
Element}
+ * @return {Ext.Element}
*/
getRenderTarget: function() {
return this.owner.getTargetEl();
*/
getRenderTarget: function() {
return this.owner.getTargetEl();