Hello:
I have a Container which holds the followings in a vbox layout:It is working fine if I set the flex values, however, I would like to have the list panels immediately after the end of the form and not starting at a set position.
In addition, I would like to have the container panel as one scrollable panel, and 3 scrollable panels as I have them now.
I have created a test container where I have the followings:- Panel with only html
- List
By setting the attribute heigth:'auto' to the first panel, I have manage to place the list just at the end of the first panel, however, it does not work with the formpanel or list.
Any ideas?
Code:
Ext.define('PlatformOneFE.view.Property', {
extend : 'Ext.Container',
xtype : 'property',
requires : [ 'PlatformOneFE.view.PropertyDetails',
'PlatformOneFE.view.Contacts' ],
config : {
title : 'Property',
layout : 'vbox',
items : [ {
xtype : 'propertyDetails',
height : 'auto'
}, {
xtype : 'contacts',
flex : 2
}, ]
}
});
Code:
Ext.define('PlatformOneFE.view.PropertyDetails', {
extend : 'Ext.Panel',
xtype : 'propertyDetails',
config : {
html : 'Details in here',
}
});
Code:
Ext.define("PlatformOneFE.view.Contacts", {
extend: 'Ext.List',
xtype: 'contacts',
config: {
title: 'Contacts',
itemTpl: [
'<h3>{lastname}, {firstname}</h3>'
],
store: 'Contacts',
});