<?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: Weird Resize Behavior in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9763#M935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Craig,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just tested this issue using a sample and can't reproduce. Can you post a code sample that will allow us to reproduce the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2012 20:29:47 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2012-11-14T20:29:47Z</dc:date>
    <item>
      <title>Weird Resize Behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9760#M932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm getting some odd behavior when I resize my map app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the application opens in a maximized window, I can resize to a smaller window and back to the maximized extent without any issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the application opens in a window that is not maximized and I then try to maximize the window, the map does not resize and my application gets blank white space in the area that is new from the resize.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not seeing any errors related to this in developer tools or firebug. My resize code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp; dojo.connect(map, 'onLoad', function(theMap) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //resize the map when the browser resizes &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(dijit.byId('map'), 'resize', map,map.resize); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 11:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9760#M932</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2012-11-14T11:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Resize Behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9761#M933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where are you calling this? Inside the init function? Do you have any custom CSS for map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, not ment to offend but theMap - is it valid for your application and not copied from code example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 12:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9761#M933</guid>
      <dc:creator>AndyBurns</dc:creator>
      <dc:date>2012-11-14T12:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Resize Behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9762#M934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it is from one of the samples. I thought that might be the issue and took it out, but it didn't make a difference so I just kept it in for now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is placed inside the init function. No custom css for map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 13:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9762#M934</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2012-11-14T13:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Resize Behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9763#M935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Craig,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just tested this issue using a sample and can't reproduce. Can you post a code sample that will allow us to reproduce the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 20:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9763#M935</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2012-11-14T20:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Resize Behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9764#M936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about if you listen to the window resize?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;dojo.connect(window, 'resize', map.resize);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed mine from this to what you had, to listen to the dijit.byId('map') and it did not resize when I maximized in IE8, but I always just listen for the resize event of the window anyway and it's always worked for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may have to do with some css as well if Kelly could not reproduce.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 21:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9764#M936</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2012-11-14T21:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Resize Behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9765#M937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Craig,&lt;BR /&gt;&lt;BR /&gt;Just tested this issue using a sample and can't reproduce. Can you post a code sample that will allow us to reproduce the problem?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kelly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached my code and app. Thanks for helping&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Odoe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried that and am still seeing the same issue. Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've looked into the CSS and removed the CSS file altogether and the map still doesn't resize when it opens in a non maximized window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 11:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9765#M937</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2012-11-15T11:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Resize Behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9766#M938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ran a quick test with your app and I found that if I use the window's resize event (as odoe pointed out) everything works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; dojo.connect(window, "resize", map, map.resize);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try replacing the following code in your app with the code above:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:24:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/weird-resize-behavior/m-p/9766#M938</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-10T20:24:41Z</dc:date>
    </item>
  </channel>
</rss>

