Upgrade to ExtJS 4.0.7 - Released 10/19/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  * @private
17  * Base class for Box Layout overflow handlers. These specialized classes are invoked when a Box Layout
18  * (either an HBox or a VBox) has child items that are either too wide (for HBox) or too tall (for VBox)
19  * for its container.
20  */
21 Ext.define('Ext.layout.container.boxOverflow.None', {
22     
23     alternateClassName: 'Ext.layout.boxOverflow.None',
24     
25     constructor: function(layout, config) {
26         this.layout = layout;
27         Ext.apply(this, config || {});
28     },
29
30     handleOverflow: Ext.emptyFn,
31
32     clearOverflow: Ext.emptyFn,
33     
34     onRemove: Ext.emptyFn,
35
36     /**
37      * @private
38      * Normalizes an item reference, string id or numerical index into a reference to the item
39      * @param {Ext.Component/String/Number} item The item reference, id or index
40      * @return {Ext.Component} The item
41      */
42     getItem: function(item) {
43         return this.layout.owner.getComponent(item);
44     },
45     
46     onRemove: Ext.emptyFn
47 });