<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic map setting width and height in inline style in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setting-width-and-height-in-inline-style/m-p/564831#M52710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have this scenario where an inline style is applied to the 'map' div setting the width and height to 400? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. &amp;lt;div class="map" style="width: 400px; height: 400px"&amp;gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is happening intermittently after new'ing up the esri map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt; self.map = new esri.Map("map", {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extent: self.gismapConfig.initialExtent,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logo: true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoWindow: popup,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autoResize: true&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What might cause this??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2013 09:04:01 GMT</pubDate>
    <dc:creator>KierenHarvey</dc:creator>
    <dc:date>2013-03-08T09:04:01Z</dc:date>
    <item>
      <title>map setting width and height in inline style</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setting-width-and-height-in-inline-style/m-p/564831#M52710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have this scenario where an inline style is applied to the 'map' div setting the width and height to 400? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. &amp;lt;div class="map" style="width: 400px; height: 400px"&amp;gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is happening intermittently after new'ing up the esri map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt; self.map = new esri.Map("map", {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extent: self.gismapConfig.initialExtent,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logo: true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoWindow: popup,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autoResize: true&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What might cause this??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 09:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setting-width-and-height-in-inline-style/m-p/564831#M52710</guid>
      <dc:creator>KierenHarvey</dc:creator>
      <dc:date>2013-03-08T09:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: map setting width and height in inline style</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setting-width-and-height-in-inline-style/m-p/564832#M52711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the element where a map is being created doesn't have a width and height, the API defaults to using 400 for both. This is defined in esri.config.defaults.map.height and esri.config.defaults.map.width. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To overcome this, specify a width and height on your element that will become a map (this could be an inline style, something in a style tag or in a .css file). See the create a map sample for an example that uses 100% for width and height:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/map_simple/index.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/samples/map_simple/index.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 16:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setting-width-and-height-in-inline-style/m-p/564832#M52711</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2013-03-08T16:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: map setting width and height in inline style</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setting-width-and-height-in-inline-style/m-p/564833#M52712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The containing div had a width set (via a css style). I'm using bootstrap for layout. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seemed that the DOM hadn't loaded when new'ing up the map. I rejigged where I'm wiring up the map and seems to have stopped applying the inline style, and filling the space defined by the parent div.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 07:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setting-width-and-height-in-inline-style/m-p/564833#M52712</guid>
      <dc:creator>KierenHarvey</dc:creator>
      <dc:date>2013-03-09T07:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: map setting width and height in inline style</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setting-width-and-height-in-inline-style/m-p/564834#M52713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;width &amp;amp; height config options aren't documented?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Closest I found was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#namespace_esri/config"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#namespace_esri/config&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#inside_defaults"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#inside_defaults&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A link from the Map class doc would be nice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 11:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-setting-width-and-height-in-inline-style/m-p/564834#M52713</guid>
      <dc:creator>KierenHarvey</dc:creator>
      <dc:date>2013-03-09T11:08:55Z</dc:date>
    </item>
  </channel>
</rss>

