<?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: Resizing widget programmatically and the minimize/maximize effect in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/resizing-widget-programmatically-and-the-minimize/m-p/217882#M6754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Of course there's a second height and width property....&amp;nbsp; Makes perfect sense!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For those wondering, setting wTemplate.widgetHeight and widgetWidth to match your height and width will solve this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Robert.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 14:56:08 GMT</pubDate>
    <dc:creator>KennyWebster</dc:creator>
    <dc:date>2013-04-03T14:56:08Z</dc:date>
    <item>
      <title>Resizing widget programmatically and the minimize/maximize effect</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/resizing-widget-programmatically-and-the-minimize/m-p/217880#M6752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a custom made widget which has a few states and depending on the state the window resizes a bit to accomedate the content of the different states.&amp;nbsp; This all works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue is when a user minimizes a widget and then reopens it.&amp;nbsp; The widget will always default back to it's orginal size regardless of state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first thought was to correct this in the widget open handler.&amp;nbsp; However - it seems the effect that the viewer uses to maximize/minimize a widget must get ahold of the default size before the open widget handler fires since I can see the widget resize to what I would like as the effect starts, then morphs back to default as the effect ends.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a bandaid I've added a flag which I set in the widget minimized handler and then reset in the widget open handler so I know if the widget is opening or minimizing.&amp;nbsp; Then I added an effectEnd handler for the widgettemplate and if it's not being minimized I set the size appropriately.&amp;nbsp; What the user sees is the widget animates open to default size then snap back to the correct size for the current state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I feel like there must be a way to get a hold of the size that the animation effect is using on minimize and reopen.&amp;nbsp; Something I'm missing here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh and I've tried setting default sizes for each state by way of width.&amp;lt;statename&amp;gt; = xxx etc.&amp;nbsp; No go.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 11:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/resizing-widget-programmatically-and-the-minimize/m-p/217880#M6752</guid>
      <dc:creator>KennyWebster</dc:creator>
      <dc:date>2013-04-03T11:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing widget programmatically and the minimize/maximize effect</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/resizing-widget-programmatically-and-the-minimize/m-p/217881#M6753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kenny,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Look in my eDraw widget for a code example as I am handling this exact situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=91a0014160fc4a9caadc2c7fd7089c1b" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=91a0014160fc4a9caadc2c7fd7089c1b&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 13:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/resizing-widget-programmatically-and-the-minimize/m-p/217881#M6753</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-04-03T13:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing widget programmatically and the minimize/maximize effect</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/resizing-widget-programmatically-and-the-minimize/m-p/217882#M6754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Of course there's a second height and width property....&amp;nbsp; Makes perfect sense!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For those wondering, setting wTemplate.widgetHeight and widgetWidth to match your height and width will solve this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Robert.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 14:56:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/resizing-widget-programmatically-and-the-minimize/m-p/217882#M6754</guid>
      <dc:creator>KennyWebster</dc:creator>
      <dc:date>2013-04-03T14:56:08Z</dc:date>
    </item>
  </channel>
</rss>

