AnsweredAssumed Answered

What specifically do I have to wait for before initializing an esri/map so that it won't assign 400 for the width and height?

Question asked by delies on Sep 2, 2014
Latest reply on Sep 18, 2014 by delies

I have a map that displays in a Bootstrap modal.  The map is set to 100% of its container.  Since it loads before the modal is made visible, the map assigns its containing div a css width and height of 400px. Since I am creating the map (but NOT the modal), I need to know what event or set of circumstances I need to wait for in order to properly initialize the map.  If it is possible to re-initialize or have the map reset its values after an improper initialization I would like to know how to do that, too.  To be clear, I cannot use the Bootstrap event, since the map cannot know about how it is shown (but it can, of course, inspect the DOM, so it might know something about where it is displayed).  Any insights at all would be helpful.