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:
Attachment 26000
And this is when I click minimize button:
Attachment 26001
I don't know why this is happening, am I doing something wrong?
Here is the widget code:
---
Bogdan Hristozov
Pontech Bulgaria
Something strange is happening with my widget window when I try to minimize it with minimize button.
This is the widget window before minimizing:
Attachment 26000
And this is when I click minimize button:
Attachment 26001
I don't know why this is happening, am I doing something wrong?
Here is the widget code:
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