Upgrade to ExtJS 4.0.0 - Released 04/26/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     /**
23      * @private
24      * Normalizes an item reference, string id or numerical index into a reference to the item
25      * @param {Ext.Component|String|Number} item The item reference, id or index
26      * @return {Ext.Component} The item
27      */
28     getItem: function(item) {
29         return this.layout.owner.getComponent(item);
30     }
31 });