Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / src / layout / container / boxOverflow / None.js
1 /**
2  * @class Ext.layout.container.boxOverflow.None
3  * @extends Object
4  * @private
5  * Base class for Box Layout overflow handlers. These specialized classes are invoked when a Box Layout
6  * (either an HBox or a VBox) has child items that are either too wide (for HBox) or too tall (for VBox)
7  * for its container.
8  */
9 Ext.define('Ext.layout.container.boxOverflow.None', {
10     
11     alternateClassName: 'Ext.layout.boxOverflow.None',
12     
13     constructor: function(layout, config) {
14         this.layout = layout;
15         Ext.apply(this, config || {});
16     },
17
18     handleOverflow: Ext.emptyFn,
19
20     clearOverflow: Ext.emptyFn,
21     
22     onRemove: Ext.emptyFn,
23
24     /**
25      * @private
26      * Normalizes an item reference, string id or numerical index into a reference to the item
27      * @param {Ext.Component|String|Number} item The item reference, id or index
28      * @return {Ext.Component} The item
29      */
30     getItem: function(item) {
31         return this.layout.owner.getComponent(item);
32     },
33     
34     onRemove: Ext.emptyFn
35 });