3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
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.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
16 * @class Ext.layout.container.boxOverflow.None
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)
23 Ext.define('Ext.layout.container.boxOverflow.None', {
25 alternateClassName: 'Ext.layout.boxOverflow.None',
27 constructor: function(layout, config) {
29 Ext.apply(this, config || {});
32 handleOverflow: Ext.emptyFn,
34 clearOverflow: Ext.emptyFn,
36 onRemove: Ext.emptyFn,
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
44 getItem: function(item) {
45 return this.layout.owner.getComponent(item);