2 * @class Ext.layout.container.AbstractFit
3 * @extends Ext.layout.container.Container
4 * <p>This is a base class for layouts that contain <b>a single item</b> that automatically expands to fill the layout's
5 * container. This class is intended to be extended or created via the <tt>layout:'fit'</tt> {@link Ext.container.Container#layout}
6 * config, and should generally not need to be created directly via the new keyword.</p>
7 * <p>FitLayout does not have any direct config options (other than inherited ones). To fit a panel to a container
8 * using FitLayout, simply set layout:'fit' on the container and add a single panel to it. If the container has
9 * multiple panels, only the first one will be displayed. Example usage:</p>
11 var p = new Ext.panel.Panel({
16 html: '<p>This is the inner panel content</p>',
22 Ext.define('Ext.layout.container.AbstractFit', {
24 /* Begin Definitions */
26 extend: 'Ext.layout.container.Container',
30 itemCls: Ext.baseCSSPrefix + 'fit-item',
31 targetCls: Ext.baseCSSPrefix + 'layout-fit',