Sunil
Sunil

Reputation: 193

Set height property of Dojo accordion content pane in ArcGIS JSAPI 3.5

I am using ArcGIS JSAPI version 3.5 on my side & Dojo version is 1.9.

Everything is working fine expect the Dojo accordion content pane.

I want to set custom height of accordion content pane.

What I have tried:

-I have set the property false in the code still it opens while its executing.(Please check the screen shot)

-Checked similar example on the web site (Programmatic example) Link:

-Checking the API reference on my side.

Still not able to understand that why default its opening..

Any help regarding this will be great!!!

My complete code is available on [http://jsfiddle.net/D9NDn/][2]

screenshot

Upvotes: 0

Views: 474

Answers (1)

MiBrock
MiBrock

Reputation: 1100

Do you want to do something like that?

<div id="closureSection" data-dojo-type="dijit/TitlePane"  title="Distance Measurement" data-dojo-props="title:'Distance Measurement', open:false">
     <div id="measurementDiv"></div>
</div>

<div id="dataLayerSection" data-dojo-type="dijit/TitlePane" title="Content Section 02" data-dojo-props="label:'Click to Expand', open:false">
 </div>

<div id="mapLegendSection" data-dojo-type="dijit/TitlePane" title="Content Section 03" data-dojo-props="label:'Click to Expand',open:false">
 </div>

<div id="disclaimerSection" data-dojo-type="dijit/TitlePane" data-dojo-Props="label:'Click to Expand',open:false" title="Content Section 04">
</div>  

Link to fiddle

I changed the ContentPanes into TitlePanes. The you can declare open:false in the data-dojo-Probs

Regards, Miriam

Upvotes: 1

Related Questions