<?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 Re: AutoResize Map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734832#M68063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Is your map inside a layout dijit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 14:46:01 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-07-28T14:46:01Z</dc:date>
    <item>
      <title>AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734831#M68062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a bit puzzled here.&amp;nbsp; I have to below code for my Map.&lt;/P&gt;&lt;P&gt;If I make the browser about half my screen and refresh everything is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the browser to Max size or manually make the browser window larger, the map does not expand to the full browser size?&lt;/P&gt;&lt;P&gt;I thought the below would take care of that.&lt;/P&gt;&lt;P&gt;Is there something else that I need to add.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.map = new esri.Map("map", {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-77.4329, 37.5410],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 7,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slider: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showAttribution:true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logo: false,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #e23d39;"&gt; autoResize: true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 13:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734831#M68062</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-07-28T13:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734832#M68063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Is your map inside a layout dijit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 14:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734832#M68063</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-07-28T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734833#M68064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how the HTML is set up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id="map" class="map" style="width: 100%; height: 100%;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="HomeButton"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:32:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734833#M68064</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-07-28T15:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734834#M68065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; There must be something else in your code or css that is interfering with the maps resize. Can you post more of your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734834#M68065</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-07-28T15:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734835#M68066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REMOVED as the problem was found below and to safe space in the post this was not needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 16:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734835#M68066</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-07-28T16:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734836#M68067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I don't see that issue when using your link...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 17:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734836#M68067</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-07-28T17:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734837#M68068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very interesting....I tested in Chrome and Firefox....when I expand the browser window It does not fully redraw....&lt;/P&gt;&lt;P&gt;hmmmm....it does not do this for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 19:18:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734837#M68068</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-07-28T19:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734838#M68069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; OK Sorry I do see the issue when I have the browser started at a reduced size. I have run into this in the past and here is my workaround:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14065777080745913 jive_text_macro" jivemacro_uid="_14065777080745913" modifiedtitle="true"&gt;
&lt;P&gt;function adjustMapHeight() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var availHeight = $(window).height() - 40; //adjust for the header&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dom.byId("map").style.height = availHeight + "px";&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;function resizeMap() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; adjustMapHeight();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.map.resize();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.map.reposition();&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;resizeEvt = (window.onorientationchange !== undefined &amp;amp;&amp;amp; !has('android')) ? "orientationchange" : "resize";&lt;/P&gt;
&lt;P&gt;on(window, resizeEvt, resizeMap);&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 20:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734838#M68069</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-07-28T20:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734839#M68070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MODIFICATION.......brb going to test....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 21:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734839#M68070</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-07-28T21:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734840#M68071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; They are fired when the browser window is resized or the orientation is changed (for mobile). I put these in your app and it worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 21:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734840#M68071</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-07-28T21:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: AutoResize Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734841#M68072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THAT did it.....thanks so much....CHeers....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 21:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/autoresize-map/m-p/734841#M68072</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-07-28T21:23:41Z</dc:date>
    </item>
  </channel>
</rss>

