]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * Demonstrates usage of a fit layout.\r | |
3 | */\r | |
4 | Ext.define('KitchenSink.view.layout.Fit', {\r | |
5 | extend: 'Ext.panel.Panel',\r | |
6 | requires: [\r | |
7 | 'Ext.layout.container.Fit'\r | |
8 | ],\r | |
9 | //<example>\r | |
10 | exampleTitle: 'Fit Layout',\r | |
11 | //</example>\r | |
12 | \r | |
13 | xtype: 'layout-fit',\r | |
14 | \r | |
15 | layout: 'fit',\r | |
16 | width: 500,\r | |
17 | height: 400,\r | |
18 | \r | |
19 | bodyPadding: 25,\r | |
20 | \r | |
21 | items: {\r | |
22 | title: 'Inner Panel',\r | |
23 | html: '<p>This panel is fit within its container.</p>',\r | |
24 | bodyPadding: 15,\r | |
25 | ui: Ext.profileName == 'neptune' ? 'light' : 'default',\r | |
26 | border: true\r | |
27 | }\r | |
28 | \r | |
29 | }); |