Resizing Map

367
1
01-25-2014 07:42 PM
VikramS
Occasional Contributor
Hello Everyone ,

When I try to hide a contentpane , I resize the width and height of the map programmatically . When I do, the map is not redrawn fully . Can anyone please tell me what do I need to do to draw the map fully .
PS In the map yellow portion is not loaded .

<div id="map" data-dojo-props="region:'center'" data-dojo-type="dijit.layout.ContentPane" style="width: 1669px;border: 0.2px solid #a1a1a1;">
</div>

[ATTACH=CONFIG]30862[/ATTACH]
0 Kudos
1 Reply
DennisHunink
New Contributor III
In basics (guess you've checked it, but just to make sure):
https://developers.arcgis.com/javascript/jsapi/map-amd.html#autoresize
https://developers.arcgis.com/javascript/jsapi/map-amd.html#resize

You could try something like this: https://developers.arcgis.com/javascript/jssamples/map_resize.html

More interesting is to see why it's not resizing. Do you have a live example somewhere (or @codio)? I remember struggled with the same issue once, turned out then that I was resizing the wrong element.
0 Kudos