<?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: Widget Container in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490734#M13783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to move the widget container scroll controls up by changing the y in the BorderContainer in WidgetContainer.mxml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However as per my requirements i require the widgets "not scroll out of screen/stage if all widgets do fit well on the stage" and this is not happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly i have removed the HeaderController and want my widgets to be minimized and arranged vertically. I do get them arranged vertically but they seemed to be pushed up out of the stage once the widgets are minimized. Is there any way to stop the widgets from going out of view on minimizing. I have set the widget container top and right and also of individual widgets but that's not fixing the problem. Is this a bug. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the isValidScroll function in the WidgetContainer.mxml is not working properly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anybody got this to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just found out that if the browser window is maximized, it seems to work fine however when the browser window is resized, the widgets get pushed upward out of browser screen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2011 08:27:35 GMT</pubDate>
    <dc:creator>FaizanTayyab</dc:creator>
    <dc:date>2011-08-17T08:27:35Z</dc:date>
    <item>
      <title>Widget Container</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490732#M13781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This may be very basic but I have few problems when i try to load the widgets. I want to load all the widgets vertically and have them in minimized state by default. At the moment i do get them lined up vertically but initially they are in open state and then get minimized. This is visible to the user and doesnt look good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly I want to restrict the scroll of the widgets when all widgets are in view/screen. This is either not working for me or i am missing some setting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally how can i move the widget container controller to start the first widget from specific location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone please help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 15:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490732#M13781</guid>
      <dc:creator>FaizanTayyab</dc:creator>
      <dc:date>2011-08-16T15:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Container</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490733#M13782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Finally how can i move the widget container controller to start the first widget from specific location.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can set top and bottom properties on the widget container.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/The_Widget_Container_tag/01m300000003000000/"&gt;http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/The_Widget_Container_tag/01m300000003000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 17:29:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490733#M13782</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2011-08-16T17:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Container</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490734#M13783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to move the widget container scroll controls up by changing the y in the BorderContainer in WidgetContainer.mxml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However as per my requirements i require the widgets "not scroll out of screen/stage if all widgets do fit well on the stage" and this is not happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly i have removed the HeaderController and want my widgets to be minimized and arranged vertically. I do get them arranged vertically but they seemed to be pushed up out of the stage once the widgets are minimized. Is there any way to stop the widgets from going out of view on minimizing. I have set the widget container top and right and also of individual widgets but that's not fixing the problem. Is this a bug. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the isValidScroll function in the WidgetContainer.mxml is not working properly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anybody got this to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just found out that if the browser window is maximized, it seems to work fine however when the browser window is resized, the widgets get pushed upward out of browser screen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 08:27:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490734#M13783</guid>
      <dc:creator>FaizanTayyab</dc:creator>
      <dc:date>2011-08-17T08:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Container</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490735#M13784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to add components to the Widget Container. One solution to the problem "&lt;/SPAN&gt;&lt;STRONG&gt;I want to load all the widgets vertically and have them in minimized state by default. At the moment i do get them lined up vertically but initially they are in open state and then get minimized&lt;/STRONG&gt;&lt;SPAN&gt;", could be to add dummy widgets in the container in minimized state initially and then replace them with the original widgets. However this is becoming a bit difficult with the Widget Manager and Widget Container.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any easier way to have the widgets minimized intially when the map loads.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 11:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490735#M13784</guid>
      <dc:creator>FaizanTayyab</dc:creator>
      <dc:date>2011-08-18T11:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Container</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490736#M13785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thought, this might help someone who is looking for something similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create Dummy Widget using Border container&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. In WidgetContainer&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private function removeDummy(event:AppEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var widget:IVisualElement;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var data:Object = event.data;
&amp;nbsp;&amp;nbsp;&amp;nbsp; curId = data.id as Number;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i:int = 0; i &amp;lt; widgetContainer.numElements; i++)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; widget = widgetContainer.getElementAt(i);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var baseWidget:InitMinWidget = widget as InitMinWidget;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(baseWidget!=null){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (baseWidget.myId == curId)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; widgetContainer.removeElement(baseWidget);
&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; }
public function addMinElement(element:IVisualElement):IVisualElement{
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (element as SkinnableContainer){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Added by FT to add the element in widget Container group
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(element!=null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.widgetContainer.addElement(element);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return element;
&amp;nbsp;&amp;nbsp; }
 private function addWidget(element:IVisualElement):void
&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; var baseWidget:IBaseWidget = element as IBaseWidget;
&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; baseWidget.isDraggable = this.isDraggable;
&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; constrainWidget(baseWidget);
&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; //widgetContainer.addElement(element);
&amp;nbsp;&amp;nbsp;&amp;nbsp; widgetContainer.addElementAt(element,Number(baseWidget.widgetId));
&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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In Widget Manager&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private function preloadNextWidget():void
&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; if (preloadArray.length &amp;gt; 0)
&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; var id:Number = preloadArray[0].id;
&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; preloadArray.splice(0, 1);
&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; //AppEvent.dispatch(AppEvent.WIDGET_RUN, id);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var preload:String = configData.widgets[id].preload;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var label:String = configData.widgets[id].label;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var icon:String = configData.widgets[id].icon;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var config:String = configData.widgets[id].config;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var url:String = configData.widgets[id].url;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var preWidget:InitMinWidget = new InitMinWidget();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preWidget.myId = id
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preWidget.myLabel = label;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preWidget.myIcon = icon;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var wgtContainer:IWidgetContainer = configData.widgetContainers[0].container.obj;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wgtContainer.addMinWidget(preWidget);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preInitWidgetArr.push(preWidget);
&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; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:36:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/widget-container/m-p/490736#M13785</guid>
      <dc:creator>FaizanTayyab</dc:creator>
      <dc:date>2021-12-11T21:36:07Z</dc:date>
    </item>
  </channel>
</rss>

