1 <!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-layout.container.AbstractFit'>/**
2 </span> * @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>
10 * <pre><code>
11 var p = new Ext.panel.Panel({
16 html: '&lt;p&gt;This is the inner panel content&lt;/p&gt;',
20 </code></pre>
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',
33 });</pre></pre></body></html>