<?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 Mobile Sample Fail in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557613#M52005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone else have problems with the Mobile Template sample at the following URL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/samples/mobile_template/index.html"&gt;http://developers.arcgis.com/en/javascript/samples/mobile_template/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed back in 3.3 that if you click About, rotate the screen, go back to the map and rotate the screen a couple of times, the map will resize itself into nothing.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I brought this up with ESRI Support, even filed a bug about it and was told it was "a priority item to solved right away". Here we are at 3.6 and it doesn't appear to me that anything has changed. Is it just my iPad and half a dozen Android sample devices doing this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Aug 2013 17:52:17 GMT</pubDate>
    <dc:creator>DouglasBraeckel</dc:creator>
    <dc:date>2013-08-19T17:52:17Z</dc:date>
    <item>
      <title>Mobile Sample Fail</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557613#M52005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone else have problems with the Mobile Template sample at the following URL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/samples/mobile_template/index.html"&gt;http://developers.arcgis.com/en/javascript/samples/mobile_template/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed back in 3.3 that if you click About, rotate the screen, go back to the map and rotate the screen a couple of times, the map will resize itself into nothing.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I brought this up with ESRI Support, even filed a bug about it and was told it was "a priority item to solved right away". Here we are at 3.6 and it doesn't appear to me that anything has changed. Is it just my iPad and half a dozen Android sample devices doing this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 17:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557613#M52005</guid>
      <dc:creator>DouglasBraeckel</dc:creator>
      <dc:date>2013-08-19T17:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile Sample Fail</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557614#M52006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Doug, thanks for pointing this out.&amp;nbsp; We're looking into the issue and will get back to you.&amp;nbsp; Have you experienced this issue using the samples from &lt;/SPAN&gt;&lt;A href="http://demos.dojotoolkit.org/demos/mobileGallery/demo-iphone.html"&gt;Dojo Mobile&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 18:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557614#M52006</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-21T18:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile Sample Fail</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557615#M52007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does anyone else have problems with the Mobile Template sample at the following URL?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/samples/mobile_template/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://developers.arcgis.com/en/javascript/samples/mobile_template/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I noticed back in 3.3 that if you click About, rotate the screen, go back to the map and rotate the screen a couple of times, the map will resize itself into nothing.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;I brought this up with ESRI Support, even filed a bug about it and was told it was "a priority item to solved right away". Here we are at 3.6 and it doesn't appear to me that anything has changed. Is it just my iPad and half a dozen Android sample devices doing this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Doug&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This was brought up a couple months ago. But when creating the map, set autoResize to false. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then only call map.resize() when inside the map view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map = new esri.Map("mapPane", {
&amp;nbsp;&amp;nbsp; autoResize : false,
.....&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.connect(map, "onLoad", function () {
&amp;nbsp; dojo.connect(window, 'onresize', function() {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // prevent map from resizing in non map view. This would error otherwise
&amp;nbsp;&amp;nbsp; if (currentView == "mapView")
&amp;nbsp;&amp;nbsp; { 
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.resize();
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.reposition();
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; });
}); &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557615#M52007</guid>
      <dc:creator>MatthewLofgren</dc:creator>
      <dc:date>2021-12-12T00:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile Sample Fail</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557616#M52008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; I haven't seen any issues like this in Dojo, and it appears to affect only the map control.&amp;nbsp; I will add the autosize=false as mentioned in post 3 to the ESRI sample and see what happens with that.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has something fundamentally changed since 3.2?&amp;nbsp; Best as I can tell, it appears to plague 3.3+.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Doug, thanks for pointing this out.&amp;nbsp; We're looking into the issue and will get back to you.&amp;nbsp; Have you experienced this issue using the samples from &lt;A href="http://demos.dojotoolkit.org/demos/mobileGallery/demo-iphone.html"&gt;Dojo Mobile&lt;/A&gt;?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 18:51:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557616#M52008</guid>
      <dc:creator>DouglasBraeckel</dc:creator>
      <dc:date>2013-08-22T18:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile Sample Fail</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557617#M52009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hey Chris,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.&amp;nbsp; I haven't seen any issues like this in Dojo, and it appears to affect only the map control.&amp;nbsp; I will add the autosize=false as mentioned in post 3 to the ESRI sample and see what happens with that.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Has something fundamentally changed since 3.2?&amp;nbsp; Best as I can tell, it appears to plague 3.3+.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Doug&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey Doug, as matt2222 mentioned, setting the autoResize to false will prevent the map from resizing into nothing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 21:31:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-sample-fail/m-p/557617#M52009</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-22T21:31:08Z</dc:date>
    </item>
  </channel>
</rss>

