13 Apr 2008 2:46 PM #1
un-collapse button dissappears?
I've been using the following to set the title(s):
race_panel_layout.beginUpdate(); var northp = race_panel_layout.getRegion('north'); northp.titleTextEl.innerHTML = "blah"; northp.collapsedEl.dom.innerHTML = "blah"; race_panel_layout.endUpdate();
30 Jun 2009 8:46 AM #2
In case anyone has this same issue (like I did) here's what I did to "fix" it:
Border layout, 3 regions (west, center, south) that were subclasses of panels, collapse buttons disappearing on collapse.
I "fixed" the disappearing collapse buttons by taking theCode:
xtype: 'detailedview' //my subclass
xtype: 'applicantview' //my subclass
xtype: 'sidePanel' //my subclass
Hope this helps someone...
By the way I don't know why this works and maybe someone with a bit more knowledge could shed some light :-)
27 Jan 2011 5:37 AM #3
I've just experienced the same problem (uncollapse button disappears), although I'm changing the panel title. Your workaround works; remove the 'collapsible' value from within your xtype and instead at it to the parent's items list.
The problem I have with the fix is that I'm using the Designer and adding the 'collapsible' value to the parent needs to be done in the .ui.js file which would mean breaking away from the Designer for further changes. Is there a way to do this programmatically? I tried calling "this.items.items.collapsible = true;" from initComponent(), but that doesn't seem to work.
27 Jan 2011 6:10 AM #4
I've been poking at the API for Panel. It looks like there's no way to change whether or not a panel is collapsible at runtime. I guess I'll have to create the outer panel programmatically (not using Designer generated code) and then add my items through that. There's not a lot in the outer panel code, given that the items are added using xtypes, so it shouldn't be too much hassle.
7 May 2011 10:54 AM #5
In my case it was just a matter of spelling:
collapsible instead of collapsable