extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
29 lines (24 loc) • 594 B
JavaScript
/**
* Demonstrates usage of a fit layout.
*/
Ext.define('KitchenSink.view.layout.Fit', {
extend: 'Ext.panel.Panel',
requires: [
'Ext.layout.container.Fit'
],
//<example>
exampleTitle: 'Fit Layout',
//</example>
xtype: 'layout-fit',
layout: 'fit',
width: 500,
height: 400,
bodyPadding: 25,
items: {
title: 'Inner Panel',
html: '<p>This panel is fit within its container.</p>',
bodyPadding: 15,
ui: KitchenSink.profileName == 'neptune' ? 'light' : 'default',
border: true
}
});