<?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: Strange behavior - ZoomIn [ESRI Navigation Toolbar] in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/strange-behavior-zoomin-esri-navigation-toolbar/m-p/580583#M54166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post some code to reproduce this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you set up an event listener to resize the map when it's content pane resizes? All of our samples that use content panes (quite a few of them!) do this with the following code:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(map, 'onLoad', function(theMap) { 
&amp;nbsp; //resize the map when the browser resizes
&amp;nbsp; dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
});
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 00:58:14 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2021-12-12T00:58:14Z</dc:date>
    <item>
      <title>Strange behavior - ZoomIn [ESRI Navigation Toolbar]</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/strange-behavior-zoomin-esri-navigation-toolbar/m-p/580582#M54165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed a strange behavior when using ZoomIn while an ExandoPane is open. My map is within a ContentPane, as soon as I expand the ExandoPane the whole ContentPane is shifted to the right (just like the map too). Now when I use ZoomIn the map zooms to a wrong area. It seems that the ZoomIn function assumes that the ContentPane has still its original size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that the attachment illustrates this behavior!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 07:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/strange-behavior-zoomin-esri-navigation-toolbar/m-p/580582#M54165</guid>
      <dc:creator>thomaskoslowski</dc:creator>
      <dc:date>2012-02-02T07:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behavior - ZoomIn [ESRI Navigation Toolbar]</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/strange-behavior-zoomin-esri-navigation-toolbar/m-p/580583#M54166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post some code to reproduce this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you set up an event listener to resize the map when it's content pane resizes? All of our samples that use content panes (quite a few of them!) do this with the following code:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(map, 'onLoad', function(theMap) { 
&amp;nbsp; //resize the map when the browser resizes
&amp;nbsp; dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
});
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/strange-behavior-zoomin-esri-navigation-toolbar/m-p/580583#M54166</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2021-12-12T00:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behavior - ZoomIn [ESRI Navigation Toolbar]</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/strange-behavior-zoomin-esri-navigation-toolbar/m-p/580584#M54167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Map#resize is set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's the same behavior as mentioned here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2396&amp;amp;t=261911" rel="nofollow" target="_blank"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2396&amp;amp;t=261911&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so far without result...?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;figured it out:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I call Map#resize each time the pane gets resized:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(dijit.byId('myexpandopane'), 'resize', resizeMap);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 05:24:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/strange-behavior-zoomin-esri-navigation-toolbar/m-p/580584#M54167</guid>
      <dc:creator>thomaskoslowski</dc:creator>
      <dc:date>2012-02-06T05:24:02Z</dc:date>
    </item>
  </channel>
</rss>

