3 Nov 2011 7:38 PM #1
Problem with panel initially collapsed in a border layout
On a border layout, when a panel is defined initially collapsed (and collapseMode is not set to header), it raises "Uncaught TypeError: Cannot set property 'hidden' of undefined" when trying to expand it.
The problem is that the panel placeholder gets created on 'placeholderCollapse', but that method doesn't get called if the panel is initially collapsed, so, me.placeholder is undefined on placeholderExpand...
Here is a simple test case:
Hope it helps
17 Nov 2011 1:26 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Just a FYI... looks like someone has marked this issue as fixed. Not sure who thoMitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
5 Jan 2012 1:24 AM #3
Similar issue with VBox layout and initially collapsed panel
I have a similar issue to this whereby I have a top panel collapsible but initially collapsed with a fixed height and a bottom most panel which is not collapsible and takes up the remaining space. I used a vbox layout with a fixed height for the top-most panel and flex: 1 for the bottom-most panel. I have tested with the ExtJs 4.1 Beta 1 release and it appears to be fixed - although this release is too early for us to get into production.
Would it be possible to get some details of how this issue was resolved so that I can make any necessary overrides in ExtJs 4.0.6 to resolve this in the interim?
13 Jan 2014 4:38 AM #4
The same problem using ExtJs 4.2.1
I got also the error: "Uncaught TypeError: Cannot set property 'hidden' of undefined" when trying to expand it."
In my case, I had another scenario. I used layout border and therefore on my implementation appeared one bug:
My Example: - appeared bug
structMaintStatusInformationPanel - expandable panelIn my case, I changed the region property of the second item with center, than works properly.
In case you will use layout: border, and there are more than one items, than one of them should have the property region: 'center',
Example: - works properly
I hope to be helpful