Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / src / layout / container / boxOverflow / None.js
1 /*
2
3 This file is part of Ext JS 4
4
5 Copyright (c) 2011 Sencha Inc
6
7 Contact:  http://www.sencha.com/contact
8
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.  Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
11
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
13
14 */
15 /**
16  * @class Ext.layout.container.boxOverflow.None
17  * @extends Object
18  * @private
19  * Base class for Box Layout overflow handlers. These specialized classes are invoked when a Box Layout
20  * (either an HBox or a VBox) has child items that are either too wide (for HBox) or too tall (for VBox)
21  * for its container.
22  */
23 Ext.define('Ext.layout.container.boxOverflow.None', {
24     
25     alternateClassName: 'Ext.layout.boxOverflow.None',
26     
27     constructor: function(layout, config) {
28         this.layout = layout;
29         Ext.apply(this, config || {});
30     },
31
32     handleOverflow: Ext.emptyFn,
33
34     clearOverflow: Ext.emptyFn,
35     
36     onRemove: Ext.emptyFn,
37
38     /**
39      * @private
40      * Normalizes an item reference, string id or numerical index into a reference to the item
41      * @param {Ext.Component|String|Number} item The item reference, id or index
42      * @return {Ext.Component} The item
43      */
44     getItem: function(item) {
45         return this.layout.owner.getComponent(item);
46     },
47     
48     onRemove: Ext.emptyFn
49 });