smas1 / geoext-viewer

Automatically exported from code.google.com/p/geoext-viewer
GNU General Public License v3.0
0 stars 0 forks source link

Placement of cancel/search button assumption #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Multi search panel
The "cancel/search" combination button is placed with the assumption there 
aren't going to be many search fields. Problem is, if I have 5 search fields, I 
end up with it going off the screen.
See attached for comparison

I know I can increase the window size - but then I get huge amounts of 
white-space the rest of the time.

Original issue reported on code.google.com by jonathan...@warwickshire.gov.uk on 30 May 2013 at 3:11

Attachments:

GoogleCodeExporter commented 9 years ago
This is an issue for the hr_formsearchpanel. Basically one builds a custom form 
panel. The whitespace is by default taken by the "status panel" which displays 
messages and search feedback, usually a single line. The properties of this 
Panel are by default in the 'statusPanelOpts' config. This can be modified in 
one's config by overriding statusPanelOpts.It has to be specified completely 
though, not just a single attribute. So height (default 132) and margins could 
be altered, such that all fit nicely into a fixed sized form. See properties:

    /** api: property[statusPanelOpts]
     *  Layout for the status Panel.
     */
    statusPanelOpts: {
        html: ' ',
        height: 132,
        preventBodyReset: true,
        bodyCfg: {
            style: {
                padding: '6px',
                border: '0px'
            }
        },
        style: {
            marginTop: '24px',
            paddingTop: '24px',
            fontFamily: 'Verdana, Arial, Helvetica, sans-serif',
            fontSize: '11px',
            color: '#0000C0'
        }
    },

Original comment by jus...@gmail.com on 31 May 2013 at 4:42

GoogleCodeExporter commented 9 years ago
Ok, this isn't a bug then.
Where does statusPanelOpts go in the greater scheme of things? I placed it 
inside hropts between searchPanel and resultPanel at that level, but it doesn't 
seem to have done anything.

Might be worth putting in an example.

Original comment by jonathan...@warwickshire.gov.uk on 3 Jun 2013 at 10:42

GoogleCodeExporter commented 9 years ago
The statusPanelOpts are related to the searchpanel (hr_formsearchpanel) and 
should be placed in its config. The Config.js from the formsearchcenter example 
(http://lib.heron-mc.org/heron/latest/examples/formsearchcenter/)  is attached 
here. In particular 'height', margin and padding fields have effect. For more 
space gain the xtype: "label", item can be left out.

Can we consider the issue fixed?

Original comment by jus...@gmail.com on 4 Jun 2013 at 3:55

Attachments:

GoogleCodeExporter commented 9 years ago
Yep. Thanks.

Original comment by jonathan...@warwickshire.gov.uk on 4 Jun 2013 at 4:01