Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9208169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:33:32+00:00 2026-06-18T00:33:32+00:00

Have a pretty common task to do where I need a search form above

  • 0

Have a pretty common task to do where I need a search form above a list to display the results, the problem is that the list is not showing the results, the store and the proxy work correctly because when I use firebug to locate the list items the list always have height of 0px.

I have already searched and the common ways to workaround this is to use a fit layout, but using that on the parent panel makes all look small as if the width used was 10px.

I cant set a fixed height because I want the list to fill the remaining space, and neither the flex option cause that stretches the search form when I want that to use the default size of the buttons and input fields.

Here is the config Im using on 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 Im trying to achieve, I took this screenshot by setting manually a height to the list container, as you can see it works the problem is that the list height doesn’t fill the space below the form by default.

goal

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:33:34+00:00Added an answer on June 18, 2026 at 12:33 am

    This is what I ended up doing to solve this, it’s more of a workaround since I had to change the layout to only have the list in it, and use toolbars for the search options, this way the toolbar controls only use the minimum height they need to draw themselves correctly.

    Ext.define('MyApp.view.search.Search', {
    extend:'Ext.Container',
    xtype: 'search_view',
    config:{
        fullscreen:true,
        layout:'card'
        items:[
            {
                xtype:'toolbar',
                docked:'top',
                items:[
                    {
                        xtype:'searchfield',
                        name:'search',
                        flex:6
                    },
                    {
                        xtype:'button',
                        action:'search',
                        iconCls:'search',
                        iconMask:true,
                        ui:'simple',
                        flex:1
                    }
                        ]
            },
            {
                xtype:'toolbar',
                docked:'top',
                items:[
                    {
                        xtype:'selectfield',
                        flex:1,
                        options:[
                            {text:'Option 1', value:'opt1'},
                            {text:'Option 2', value:'opt2'}
                        ]
                    }
                ]
            },
            {
                 xtype:'list',
                 itemTpl:['{title}'],
                 onItemDisclosure:true,
                 plugins:[
                     { xclass: 'Ext.plugin.ListPaging' }
                 ]
    
            },
            ],      
        }
    });
    

    As you can see I have two toolbars docked at the top, and the list filling the whole layout. Here is a screenshot of how it looks now.

    enter image description here

    Thanks for your time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pretty common layout issue that I have traditionally used a table
This seems like it would be pretty common task, but I'm not having any
I think this is a pretty common scenario: I have a webpage that's returning
I have included reset.css which is pretty common for most websites that use, on
Probably a common problem, but anyway: Let's say I have a simple entity Task
I have what I expect would be a pretty common task, but I can't
I have some pretty common Haskell boilerplate that shows up in a lot of
I am sure this a pretty common problem: I have a UITableView with quite
I think the problem is pretty common. You have some input string, and have
Setup: Hi, I have Rails 3.2, Guard, RSpec and FactoryGirl. Pretty common. The Problem:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.