<?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 Disappearing scroll bars in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750613#M22542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have developed a custom widget in which I dynamically add information to a vGroup from related records when the user clicks the map.&amp;nbsp; Sometimes the number of records are more than the widget can display, so I added scroll bars to the widget.&amp;nbsp; It struck me as odd that I had to add the scroll bars as I thought the widget would do this automatically.&amp;nbsp; However, adding scroll bars worked the first time the user opens the widget.&amp;nbsp; If the user closes the widget and then re-opens it again, the scroll bars do not appear.&amp;nbsp; Anyone have clue why they do not appear when the widget is re-opened?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional info: code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;viewer:WidgetTemplate id="RI" closed="RI_closed()" addedToStage="RI_addedToStage()"&amp;gt;
 &amp;lt;s:Scroller id="resultsScoller" width="100%" height="100%"&amp;gt;
&amp;nbsp; &amp;lt;s:VGroup id="resultsGroup"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:Label text="Click a feature on the map to
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retrieve related information" fontSize="14" fontWeight="bold" 
&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontStyle="italic"/&amp;gt;
&amp;nbsp; &amp;lt;/s:VGroup&amp;gt;
 &amp;lt;/s:Scroller&amp;gt;
&amp;lt;/viewer:WidgetTemplate&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2011 14:11:34 GMT</pubDate>
    <dc:creator>DanJensen</dc:creator>
    <dc:date>2011-07-08T14:11:34Z</dc:date>
    <item>
      <title>Disappearing scroll bars</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750613#M22542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have developed a custom widget in which I dynamically add information to a vGroup from related records when the user clicks the map.&amp;nbsp; Sometimes the number of records are more than the widget can display, so I added scroll bars to the widget.&amp;nbsp; It struck me as odd that I had to add the scroll bars as I thought the widget would do this automatically.&amp;nbsp; However, adding scroll bars worked the first time the user opens the widget.&amp;nbsp; If the user closes the widget and then re-opens it again, the scroll bars do not appear.&amp;nbsp; Anyone have clue why they do not appear when the widget is re-opened?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional info: code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;viewer:WidgetTemplate id="RI" closed="RI_closed()" addedToStage="RI_addedToStage()"&amp;gt;
 &amp;lt;s:Scroller id="resultsScoller" width="100%" height="100%"&amp;gt;
&amp;nbsp; &amp;lt;s:VGroup id="resultsGroup"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:Label text="Click a feature on the map to
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retrieve related information" fontSize="14" fontWeight="bold" 
&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontStyle="italic"/&amp;gt;
&amp;nbsp; &amp;lt;/s:VGroup&amp;gt;
 &amp;lt;/s:Scroller&amp;gt;
&amp;lt;/viewer:WidgetTemplate&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 14:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750613#M22542</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2011-07-08T14:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Disappearing scroll bars</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750614#M22543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By default the Scroller displays its scrollbars when they�??re needed�??when the viewport�??s content size is larger than its actual size. You can change this policy with the verticalScrollPolicy and horizontalScrollPolicy properties. The default value for these properties, auto, causes the scrollbars to display as needed. Set these properties to on to unconditionally display a scrollbar, and off to unconditionally hide a scrollbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.adobe.com/devnet/flex/articles/flex4_viewport_scrolling.html"&gt;http://www.adobe.com/devnet/flex/articles/flex4_viewport_scrolling.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;s:Scroller horizontalScrollPolicy="on" verticalScrollPolicy="on"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 15:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750614#M22543</guid>
      <dc:creator>AlexJones</dc:creator>
      <dc:date>2011-07-08T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Disappearing scroll bars</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750615#M22544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Forum,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional detail.&amp;nbsp; While it remains true that the scroll bars are not visible, the scrolling functionallity works when I use the scroll wheel on the mouse.&amp;nbsp; It is as if the scrollbars themselves are outside the viewable area.&amp;nbsp; Any idea why this happens on the second instantiation of the widget, but not the first?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the widget closes I remove all the elements within the vGroup(resultsGroup).&amp;nbsp; Could this impact the scroller which is the parent of the vGroup in some way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 16:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750615#M22544</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2011-07-18T16:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Disappearing scroll bars</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750616#M22545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Turns out the problem is using the removeAllElements() function on the resultsGroup unfortunately removes the scroll bar as well.&amp;nbsp; Now I need to know how to remove spedific elements from the VGroup as I close the widget.&amp;nbsp; This will allow the widget to look reset when the user calls it again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 21:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750616#M22545</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2011-07-18T21:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Disappearing scroll bars</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750617#M22546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; You should be just setting the ArrayCollection that is the datadprovider for your datagroup to null.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 01:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disappearing-scroll-bars/m-p/750617#M22546</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-07-19T01:23:58Z</dc:date>
    </item>
  </channel>
</rss>

