View Full Version : Form Panel not accessible when layout is collapsed

23 Nov 2011, 8:26 AM
Dear all,

I have a little "bug" that I want to resolved.
I have a Panel with 3 regions:
1 Center with Item call GridAtTop
South split in two others regions:
2 East with Item call FormAtSouthEast
3 Center with Item call GridAtSouthCenter

The south region is collabsible.
The East region is collabsible too.

When I click a row in GridAtTop, I update FormAtSouthEast and GridAtSouthCenter.
All it's ok on default mode.
If I collapsed the South, all it's ok too.
But, if I collapsed the SouthEast and click a row in GridAtTop, I get an error as my FormPanel doesn't exist.
Same if I collapsed the SouthEast and after collapsed the South.

If somebody has a way to look for, thanks to share !!!

23 Nov 2011, 8:51 AM
Add infos:
In fact it's when I made a form.load() (and with SouthEast only collapsed) that I get the error:
"this.form.el is undefined
return (this.options.method ||....dom.method || 'POST').toUpperCase(); "

Thanks for your help

23 Nov 2011, 1:22 PM
So you're rendering the regions and then collapsing them and that's when you get the error?

23 Nov 2011, 11:29 PM
I rendering the region, I collapsed (if user need more width for the gridAtSouthCenter), and then I update my GridAtSouthCenter and my FormAtSouthEast.
If I collapsed the south region, no problem I can (re)load the FormAtSouthEast and the GridAtSouthCenter no error.
But if the south-east is collapsed, and if I (re)load the form, I get the error.

Thanks for your help.

24 Nov 2011, 12:03 AM
I added two captures for help to understand my case.
First, Capture_ok : no error when I click on a row on the GridAtTop to load the FormAtSouthEast and the GridAtSouthCenter.
Second, Capture_with_error: I get an error for the same action.
To avoid the error, I test my layout SouthEast, if it's collapsed, I 'm not load the FormAtSouthEast , but it will be cleaner to load it anyway.