<?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 not filling div element on initial page load in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9213#M861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just getting to grips with the javascript api, and in particular the AMD coding style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple page that I am rewriting in AMD style, everything works, but except the map only displays in half the available space. Doing anything to the browser e.g. zooming in (in the browser, not the map), or re sizing the window, causes the map element to display correctly filling the page. I believe this is due to the dom not being ready when the map loads, but is ready when the page is re sized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using "dojo/domReady!" in my initial require[] statement, so I cant see why the dom isnt ready. However to complicate things, I tried including a "dojo/ready" function which should also monitor when the dom loads, this the function simply triggered an alert box message, but the function never fires:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="2168" alt="mapDivErr.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/2168_mapDivErr.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any one has any suggestions how to resolve this, that would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This page is being viewed in IE 11.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2014 10:35:30 GMT</pubDate>
    <dc:creator>MartinAshmore</dc:creator>
    <dc:date>2014-07-15T10:35:30Z</dc:date>
    <item>
      <title>Map not filling div element on initial page load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9213#M861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just getting to grips with the javascript api, and in particular the AMD coding style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple page that I am rewriting in AMD style, everything works, but except the map only displays in half the available space. Doing anything to the browser e.g. zooming in (in the browser, not the map), or re sizing the window, causes the map element to display correctly filling the page. I believe this is due to the dom not being ready when the map loads, but is ready when the page is re sized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using "dojo/domReady!" in my initial require[] statement, so I cant see why the dom isnt ready. However to complicate things, I tried including a "dojo/ready" function which should also monitor when the dom loads, this the function simply triggered an alert box message, but the function never fires:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="2168" alt="mapDivErr.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/2168_mapDivErr.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any one has any suggestions how to resolve this, that would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This page is being viewed in IE 11.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 10:35:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9213#M861</guid>
      <dc:creator>MartinAshmore</dc:creator>
      <dc:date>2014-07-15T10:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Map not filling div element on initial page load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9214#M862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can debug in IE11 by pressing the F12 key on your keyboard and looking through the debugger.&amp;nbsp; I noticed you are using an old API.&amp;nbsp; When I debugged it in Firefox, it said that InfoTemplate could not be found.&amp;nbsp; I changed to the version 3.5 of the API and did not receive that error but could not debug any further because I did not have your custom css file or access to your maps at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://svarc/" rel="nofollow" target="_blank"&gt;http://svarc/&lt;/A&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 12:12:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9214#M862</guid>
      <dc:creator>LuciHawkins</dc:creator>
      <dc:date>2014-07-15T12:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Map not filling div element on initial page load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9215#M863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looking at your code, you still mix a lot of AMD and Legacy. Maybe this &lt;A href="http://blogs.esri.com/esri/arcgis/2013/10/14/the-abcs-of-amd/"&gt;blog post&lt;/A&gt; can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I have noticed you are missing the following in your require ""dojo/on" and "dojo/dom" with the corresponding on and dom in your function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps at least a bit!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 12:25:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9215#M863</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2014-07-15T12:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Map not filling div element on initial page load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9216#M864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luci,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have pasted the contents of the css file at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you might of guessed my coding ability is pretty limited, so any help is greatly appreciated. At the moment I am basically hashing together sample pages and some examples from a course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have updated my javascript api to 3.10 &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.10/" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.10/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Missing CSS file referenced in index.html*/&lt;/P&gt;&lt;P&gt;html, body {&lt;/P&gt;&lt;P&gt;&amp;nbsp; height: 100%;&lt;/P&gt;&lt;P&gt;&amp;nbsp; width: 100%;&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin: 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;body {&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-color: white;&lt;/P&gt;&lt;P&gt;&amp;nbsp; overflow: hidden;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-family: "Kimberley", sans-serif;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#mainDiv {&lt;/P&gt;&lt;P&gt;&amp;nbsp; width: 100%;&lt;/P&gt;&lt;P&gt;&amp;nbsp; height: 100%;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#headerDiv {&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin: 2px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding-top: 6px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding-right: 20px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-color: #929761;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #421b14;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border: solid 2px #79663b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; height: 55px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; text-align: left;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-size: 18pt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-weight: bold;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#footerDiv {&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin: 2px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 2px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-color: white;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #2a3537;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border: solid 2px #79663b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-size: 10pt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; text-align: center;&lt;/P&gt;&lt;P&gt;&amp;nbsp; height: 30px;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#rightDiv {&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin: 3px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 10px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-color: white;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #421b14;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border: solid 2px #79663b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; width: 150px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; overflow: auto;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#leftDiv {&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin: 3px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 5px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; width: 150px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #3C1700;&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-color: white;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border: solid 2px #79663b;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#mapDiv {&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin: 3px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 1px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border: solid 2px #79663b;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.esriLegendServiceLabel {&lt;/P&gt;&lt;P&gt;&amp;nbsp; display: none;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.esriLegendLayerLabel {&lt;/P&gt;&lt;P&gt;&amp;nbsp; display: none;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.shadow {&lt;/P&gt;&lt;P&gt;&amp;nbsp; -o-border-radius: 6px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; -webkit-border-radius: 6px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; box-shadow: 8px 8px 16px #323834;&lt;/P&gt;&lt;P&gt;&amp;nbsp; -webkit-box-shadow: 8px 8px 16px #323834;&lt;/P&gt;&lt;P&gt;&amp;nbsp; -o-box-shadow: 8px 8px 16px #323834;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.nihilo .dijitAccordionText {&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin-left: 4px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin-right: 4px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #5c8503;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9216#M864</guid>
      <dc:creator>MartinAshmore</dc:creator>
      <dc:date>2014-07-15T13:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Map not filling div element on initial page load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9217#M865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response and pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've only tinkered with a bit of javascript, and I'm finding dojo quite confusing. The blog post is really helpful, the AMD style of coding dosent seem as intuitive to me, but the blog has answered a couple of niggles I had straight away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is greatly appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:35:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9217#M865</guid>
      <dc:creator>MartinAshmore</dc:creator>
      <dc:date>2014-07-15T13:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Map not filling div element on initial page load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9218#M866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In your CSS try adding height and width to your mapDiv and remove the padding&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14054349884876868" jivemacro_uid="_14054349884876868" modifiedtitle="true"&gt;
&lt;P&gt;#mapDiv {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; margin: 3px;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; border: solid 2px #79663b;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; height: inherit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; width: inherit;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 14:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9218#M866</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-07-15T14:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Map not filling div element on initial page load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9219#M867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's fixed it, many thanks and much kudos your way!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to admit I don't quite understand why it has fixed it. I had partially rewritten the page from a previous one that was written in the legacy style. The old page using dojo.addOnLoad(init); style and the same css loaded with the map full screen?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 15:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9219#M867</guid>
      <dc:creator>MartinAshmore</dc:creator>
      <dc:date>2014-07-15T15:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Map not filling div element on initial page load</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9220#M868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It is all a timing issue really. Things happen in a different timing order in the legacy code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 15:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-filling-div-element-on-initial-page-load/m-p/9220#M868</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-07-15T15:18:40Z</dc:date>
    </item>
  </channel>
</rss>

