I cannot figure out how to say that the accordioncontainer set the height of its accordion panel to auto so that the height of the panel is dynamic depending on its contents.
In the following code, I add two panels to the accordion connector. One has a height of 10 pixels and the other 90 pixels, but in both cases the height of the accordion panel is calculated to 10 pixels. It seems that he always rises to the height of the first.
var accordionContainer = new dijit.layout.AccordionContainer({'id':'accContainer'}).placeAt("test"); var accordPane = new dijit.layout.ContentPane({"title": "test", "content":"<div style='height:10px'>sdfsdfsdf</div>"}); var accordPane2 = new dijit.layout.ContentPane({"title": "test1", "content":"<div style='height:90px'>sdfsdfsdf</div>"}); accordionContainer.addChild(accordPane); accordionContainer.addChild(accordPane2, 1); accordPane.startup(); accordPane2.startup(); accordionContainer.startup(); accordionContainer.selectChild(accordPane2);
I am using dojo 1.3.2
source share