]> git.proxmox.com Git - extjs.git/blame - extjs/build/examples/kitchensink/classic/samples/view/layout/Fit.js
bump version to 7.0.0-4
[extjs.git] / extjs / build / examples / kitchensink / classic / samples / view / layout / Fit.js
CommitLineData
947f0963
TL
1/**
2 * Demonstrates usage of a fit layout.
3 */
4Ext.define('KitchenSink.view.layout.Fit', {
5 extend: 'Ext.panel.Panel',
6 requires: [
7 'Ext.layout.container.Fit'
8 ],
9 //<example>
10 exampleTitle: 'Fit Layout',
11 //</example>
12
13 xtype: 'layout-fit',
14
15 layout: 'fit',
16 width: 500,
17 height: 400,
18 cls: Ext.baseCSSPrefix + 'shadow',
19
20 bodyPadding: 25,
21
22 items: {
23 title: 'Inner Panel',
24 html: '<p>This panel is fit within its container.</p>',
25 bodyPadding: 15,
26 ui: KitchenSink.profileName === 'neptune' ? 'light' : 'default',
27 border: true
28 }
29
30});