Select to view content in your preferred language

Problem with minimizing widget window

1027
2
Jump to solution
07-17-2013 01:39 AM
bojko108
Emerging Contributor
Hello,
Something strange is happening with my widget window when I try to minimize it with minimize button.

This is the widget window before minimizing:
[ATTACH=CONFIG]26000[/ATTACH]

And this is when I click minimize button:
[ATTACH=CONFIG]26001[/ATTACH]

I don't know why this is happening, am I doing something wrong?

Here is the widget code:
<viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"        xmlns:esri="http://www.esri.com/2008/ags"        xmlns:s="library://ns.adobe.com/flex/spark"        xmlns:mx="library://ns.adobe.com/flex/mx"        xmlns:viewer="com.esri.viewer.*"        creationComplete="creationCompleteHandler(event)"        width="670"        height="446"        borderVisible="true"        isResizeable="true"        layout="absolute"        widgetConfigLoaded="init()">     <fx:Script>     </fx:Script>    <fx:Declarations>   <!-- s:TraceTarget/ -->   <esri:Query id="queryByGeometry" />   <esri:DrawTool id="myDrawTool" drawEnd="drawEndHandler(event)"/>  </fx:Declarations>  <viewer:WidgetTemplate id="labelInfoWindowB"          left="0" right="2" top="0" bottom="4"               closed="infoWindow_closedHandler(event)"          horizontalCenter="-1"          verticalCenter="-2"          height="400" width="600">   <s:Form left="10" right="9" top="10" bottom="9">    <s:FormItem width="628" height="404" label="">     <mx:TabNavigator left="0" right="61" top="0" bottom="0" paddingTop="0">      <s:NavigatorContent width="100%" height="100%" label="?????????">       <s:Label id="labelSelectedObject" x="10" y="10" paddingTop="2" fontSize="16" fontWeight="bold" text="No Selection"/>       <mx:Tree id="treeSelection" x="383" y="30" width="214" height="320"          change="treeSelection_changeHandler(event)"          labelFunction="treeLabeling">       </mx:Tree>       <s:Button id="buttonZoomTo" x="383" y="10" label="Zoom to"           click="buttonZoomTo_clickHandler(event)"/>       <s:Button id="buttonPanTo" x="461" y="10" label="Pan to"           click="buttonPanTo_clickHandler(event)"/>      </s:NavigatorContent>      <s:NavigatorContent width="100%" height="100%" label="??????">      </s:NavigatorContent>      <s:NavigatorContent width="100%" height="100%" label="?????????">      </s:NavigatorContent>     </mx:TabNavigator>    </s:FormItem>   </s:Form>  </viewer:WidgetTemplate> </viewer:BaseWidget>


---
Bogdan Hristozov
Pontech Bulgaria
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Bogdan,

   Do not set the width and height of your widget explicitly in the BaseWidget. To set the width and height you do that in the WidgetTemplate.


P.S. Add widget/viewer questions to this Viewer forum and not the Flex API forum where you originally had this post before I moved it.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Bogdan,

   Do not set the width and height of your widget explicitly in the BaseWidget. To set the width and height you do that in the WidgetTemplate.


P.S. Add widget/viewer questions to this Viewer forum and not the Flex API forum where you originally had this post before I moved it.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos
by Anonymous User
Not applicable
Original User: bojko108

Thanks, Robert
It works now.
0 Kudos