You have a fairly common task to do, where I need a search form on a list to display the results, the problem is that the list does not show results, the repository and proxies work correctly, because when I use firebug to search, the elements of the list always have height 0px.
I have already searched, and common ways to get around this is to use a suitable layout, but using this on the parent panel makes everything small, as if the width were 10px.
I cannot set a fixed height because I want the list to fill the remaining space, and none of the flex options stretch the search form when I want this to use the default size for buttons and input fields.
Here is the Im configuration used in the view
Ext.define('MyApp.view.search.Search', { extend:'Ext.navigation.View', xtype: 'search_view', config:{ items:[ { fullscreen:true, scroll:false, xtype:'panel', title:'Search', items:[ { xtype:'searchfield', name:'search', label:'Search', }, { xtype:'container', layout:'hbox', width:'100%', margin:'3 0 0 0', defaults:{ flex:1 }, items:[ { xtype:'selectfield', options:[ {text:'Option 1', value:'opt1'}, {text:'Option 2', value:'opt2'} ] }, { xtype:'button', text:'Search', action:'search' } ] }, { xtype:'list', itemTpl:['{title}'], onItemDisclosure:true, plugins:[ { xclass: 'Ext.plugin.ListPaging' } ] } ] }, ], } });
This image describes what I'm trying to achieve, I took this screenshot by manually setting the height in the list container, as you can see that the problem is that the list height does not fill the space below the default form.