PDA

View Full Version : alwaysShowTabs



NBRed5
6 Jul 2007, 7:45 AM
I do not think that the config option alwaysShowTabs for a LayoutRegion actually works as I would expect.

I have a center region to which on document load I add 2 content panels, I then hide one of those panels and although I have set alwaysShowTabs to false for this region the tab for the remaining panel is still shown.

I load both panels at start up and alternately show or hide one or the other depending on links clicked in the west panel.

I know I can use hideTabs:true on the region config but I now wish to expand the conent and in one senario I will have only 1 panel showing (and therefore no tabs showing) and in the other 2 panels showing when I would wish the tabs to show.

I have had a look at the code for hidePanel on LayoutRegion and it seems to take no account of how many tabs are left visible when a panel is hidden.

Is this the correct behaviour or should the tabs hide when I hide the second of 2 panels in the center region.

Nick

tryanDLS
6 Jul 2007, 8:07 AM
The setting is working correctly. You can see this behavior in the complex layout example by setting alwaysShowTabs:false on the center region, then close the 'Close Me' tab. However that setting applies to closing panels, not simply hiding them.