X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Box.html diff --git a/docs/source/Box.html b/docs/source/Box.html index 2ccdc6b6..d6b204aa 100644 --- a/docs/source/Box.html +++ b/docs/source/Box.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.layout.container.Box
* @extends Ext.layout.container.Container
* <p>Base Class for HBoxLayout and VBoxLayout Classes. Generally it should not need to be used directly.</p>
@@ -22,14 +39,14 @@ Ext.define('Ext.layout.container.Box', {
/* End Definitions */
- /**
+ /**
* @cfg {Mixed} animate
* <p>If truthy, child Component are <i>animated</i> into position whenever the Container
* is layed out. If this option is numeric, it is used as the animation duration in milliseconds.</p>
* <p>May be set as a property at any time.</p>
*/
- /**
+ /**
* @cfg {Object} defaultMargins
* <p>If the individual contained items do not have a <tt>margins</tt>
* property specified or margin specified via CSS, the default margins from this property will be
@@ -65,7 +82,7 @@ Ext.define('Ext.layout.container.Box', {
left: 0
},
- /**
+ /**
* @cfg {String} padding
* <p>Sets the padding to be applied to all child items managed by this layout.</p>
* <p>This property must be specified as a string containing
@@ -86,7 +103,7 @@ Ext.define('Ext.layout.container.Box', {
// documented in subclasses
pack: 'start',
- /**
+ /**
* @cfg {String} pack
* Controls how the child items of the container are packed together. Acceptable configuration values
* for this property are:
@@ -99,7 +116,7 @@ Ext.define('Ext.layout.container.Box', {
* side of container</div></li>
* </ul></div>
*/
- /**
+ /**
* @cfg {Number} flex
* This configuration option is to be applied to <b>child <tt>items</tt></b> of the container managed
* by this layout. Each child item with a <tt>flex</tt> property will be flexed <b>horizontally</b>
@@ -125,7 +142,7 @@ Ext.define('Ext.layout.container.Box', {
// whether or not to reserve the availableSpaceOffset in layout calculations
reserveOffset: true,
- /**
+ /**
* @cfg {Boolean} clearInnerCtOnLayout
*/
clearInnerCtOnLayout: false,
@@ -158,7 +175,7 @@ Ext.define('Ext.layout.container.Box', {
me.initOverflowHandler();
},
- /**
+ /**
* @private
* Returns the current size and positioning of the passed child item.
* @param {Component} child The child Component to calculate the box for
@@ -174,7 +191,7 @@ Ext.define('Ext.layout.container.Box', {
};
},
- /**
+ /**
* @private
* Calculates the size and positioning of the passed child item.
* @param {Component} child The child Component to calculate the box for
@@ -194,7 +211,7 @@ Ext.define('Ext.layout.container.Box', {
}
},
- /**
+ /**
* @private
* Calculates the size and positioning of each item in the box. This iterates over all of the rendered,
* visible items and returns a height, width, top and left for each, as well as a reference to each. Also
@@ -475,8 +492,15 @@ Ext.define('Ext.layout.container.Box', {
}
};
},
+
+ onRemove: function(comp){
+ this.callParent(arguments);
+ if (this.overflowHandler) {
+ this.overflowHandler.onRemove(comp);
+ }
+ },
- /**
+ /**
* @private
*/
initOverflowHandler: function() {
@@ -489,7 +513,7 @@ Ext.define('Ext.layout.container.Box', {
}
var handlerType = 'None';
- if (handler && handler.type != undefined) {
+ if (handler && handler.type !== undefined) {
handlerType = handler.type;
}
@@ -501,7 +525,7 @@ Ext.define('Ext.layout.container.Box', {
this.overflowHandler = Ext.create('Ext.layout.container.boxOverflow.' + handlerType, this, handler);
},
- /**
+ /**
* @private
* Runs the child box calculations and caches them in childBoxCache. Subclasses can used these cached values
* when laying out
@@ -547,7 +571,7 @@ Ext.define('Ext.layout.container.Box', {
me.overflowHandler.clearOverflow();
}
- /**
+ /**
* @private
* @property layoutTargetLastSize
* @type Object
@@ -556,7 +580,7 @@ Ext.define('Ext.layout.container.Box', {
*/
me.layoutTargetLastSize = targetSize;
- /**
+ /**
* @private
* @property childBoxCache
* @type Array
@@ -570,7 +594,7 @@ Ext.define('Ext.layout.container.Box', {
me.handleTargetOverflow(targetSize);
},
- /**
+ /**
* Resizes and repositions each child component
* @param {Array} boxes The box measurements
*/
@@ -694,7 +718,7 @@ Ext.define('Ext.layout.container.Box', {
}
},
- /**
+ /**
* @private
* Called by onRender just before the child components are sized and positioned. This resizes the innerCt
* to make sure all child items fit within it. We call this before sizing the children because if our child
@@ -749,7 +773,7 @@ Ext.define('Ext.layout.container.Box', {
}
},
- /**
+ /**
* @private
* This should be called after onLayout of any BoxLayout subclass. If the target's overflow is not set to 'hidden',
* we need to lay out a second time because the scrollbars may have modified the height and width of the layout
@@ -828,11 +852,13 @@ Ext.define('Ext.layout.container.Box', {
item.margins = margins;
},
- /**
+ /**
* @private
*/
destroy: function() {
Ext.destroy(this.overflowHandler);
this.callParent(arguments);
}
-});
\ No newline at end of file
+});
+
+