<?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 Canvas Size in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-canvas-size/m-p/205826#M19120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a an app with two mobile views, an intro view and a map view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I load the the Map View first everything works fine: &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/7bzMG/"&gt;http://jsfiddle.net/7bzMG/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;But the idea of having an intro view is that this should be the first to load, but when this happens the map canvas doesn't size properly: &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/bHcDm/"&gt;http://jsfiddle.net/bHcDm//&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The only difference between the two fiddle's is in the first one I force the Map View to load first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know why this happens? It isn't the first time that I have this problem. The same happened using Tab containers. If the first tab to load isn't the one that contains the map, the map canvas doesn't size properly. The way I got around this was to add a loading overlay and once the application was loaded switch to the intro tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have an idea why this happens?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tiago&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 14:12:37 GMT</pubDate>
    <dc:creator>TiagoRibeiro</dc:creator>
    <dc:date>2013-08-14T14:12:37Z</dc:date>
    <item>
      <title>Map Canvas Size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-canvas-size/m-p/205826#M19120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a an app with two mobile views, an intro view and a map view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I load the the Map View first everything works fine: &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/7bzMG/"&gt;http://jsfiddle.net/7bzMG/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;But the idea of having an intro view is that this should be the first to load, but when this happens the map canvas doesn't size properly: &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/bHcDm/"&gt;http://jsfiddle.net/bHcDm//&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The only difference between the two fiddle's is in the first one I force the Map View to load first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know why this happens? It isn't the first time that I have this problem. The same happened using Tab containers. If the first tab to load isn't the one that contains the map, the map canvas doesn't size properly. The way I got around this was to add a loading overlay and once the application was loaded switch to the intro tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have an idea why this happens?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tiago&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 14:12:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-canvas-size/m-p/205826#M19120</guid>
      <dc:creator>TiagoRibeiro</dc:creator>
      <dc:date>2013-08-14T14:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Map Canvas Size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-canvas-size/m-p/205827#M19121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe it has to do with the parser, or rather, when the parser is called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could call the parser manually instead of onLoad, then load the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 17:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-canvas-size/m-p/205827#M19121</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2013-08-14T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Map Canvas Size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-canvas-size/m-p/205828#M19122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I believe it has to do with the parser, or rather, when the parser is called.&lt;BR /&gt;&lt;BR /&gt;You could call the parser manually instead of onLoad, then load the map.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply Jonathan.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What to you mean "call the parser manually"? Isn't that accomplished by "parser.parse();"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 08:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-canvas-size/m-p/205828#M19122</guid>
      <dc:creator>TiagoRibeiro</dc:creator>
      <dc:date>2013-08-15T08:14:02Z</dc:date>
    </item>
  </channel>
</rss>

