Question

I want to have height set to AUTO for all my content panes in my dojo accordion. But it is currently taking the def height or the height i set for the accordion. does anyone know how to set the height of a content pane to dynamic or auto inside the dijit.layout.accordionpane.

Here is my sample code.

<div dojoType="dijit.layout.AccordionContainer" id="@getId("Accordion")" duration="80" style="width: 760px; height:auto;">

   <div dojoType="dijit.layout.ContentPane" id="@getId("InfoPane")" selected="true"    
      title="Basic Information">                
   </div>        

   <div dojoType="dijit.layout.ContentPane" id="@getId("ContactPane")" title="Contact    
        Information">
   </div>
</div>

Please advice.

Thanks, Vivek

Was it helpful?

Solution

I used the doLayout parameter of Accordion.

With this all the ContentPane's height will be set to their content instead of the Accordion height.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top