<?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: redraw resize map when browser resized in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179693#M4236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: alnesbit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My map is in a &amp;lt;s:VGroup&amp;gt; and that's within a &amp;lt;mx:VDividedBox&amp;gt;. The map and all containers are set to height and width = 100%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jan 2011 15:42:36 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2011-01-28T15:42:36Z</dc:date>
    <item>
      <title>redraw resize map when browser resized</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179691#M4234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: alnesbit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have put a width of 100% on all of my components and containers and the text resizes and moves to a new line very nicely when the browser window is expanded and made smaller. My map does not resize though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I swear I read something somewhere about how to do this but I can't find it now. Does anyone know what code I need to make the map resize and redraw when the browser window is resized?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 15:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179691#M4234</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-01-27T15:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: redraw resize map when browser resized</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179692#M4235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: cgishack&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is your map set to have a width/height of 100%, or have a top, left, bottom and right set to 0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What type of container is the map in?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 15:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179692#M4235</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-01-28T15:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: redraw resize map when browser resized</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179693#M4236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: alnesbit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My map is in a &amp;lt;s:VGroup&amp;gt; and that's within a &amp;lt;mx:VDividedBox&amp;gt;. The map and all containers are set to height and width = 100%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 15:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179693#M4236</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-01-28T15:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: redraw resize map when browser resized</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179694#M4237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a sample that seems to work for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:esri="http://www.esri.com/2008/ags"&amp;gt;
 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;!-- Place non-visual elements (e.g., services, value objects) here --&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;



&amp;lt;mx:VDividedBox width="100%" height="100%"&amp;gt;
 &amp;lt;s:VGroup width="100%"&amp;gt;
 &amp;lt;mx:DataGrid id="myGrid" width="100%" height="100%" /&amp;gt;
 &amp;lt;/s:VGroup&amp;gt; 
 &amp;lt;s:VGroup width="100%"&amp;gt;
&amp;nbsp; &amp;lt;esri:Map id="myMap" x="0" y="0"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/&amp;gt;
&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
 &amp;lt;/s:VGroup&amp;gt; 
 
&amp;lt;/mx:VDividedBox&amp;gt;
&amp;lt;/s:Application&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:11:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179694#M4237</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2021-12-11T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: redraw resize map when browser resized</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179695#M4238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: alnesbit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, I guess mine is working as it's supposed to. I didn't think it was but I think that's just the nature of a map within the website. If you expand the browser the map will expand to fill the space. If you have to make your browser window smaller, I thought it would try to fit your current view of the map into the now smaller map container. But it doesn't. It just cuts it off. But the sample does it too, so that's just how it is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate your help,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 16:13:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/redraw-resize-map-when-browser-resized/m-p/179695#M4238</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-01-28T16:13:59Z</dc:date>
    </item>
  </channel>
</rss>

