Select to view content in your preferred language

Implement WidgetContainer in FlexViewer 1.3

1268
8
09-01-2010 11:07 AM
JorgeFiallega
Emerging Contributor
I would like to know how possible would be to port the WidgetContainer and WidgetContainerWidget to FlexViewer 1.3.
The main feature that I need and that is solved in FlexViewer 2.0 is the possibility of "float" and resize widgets.
There are a couple of solutions with teh MyFloatDG and so on htat have been posted using TitleWindow, but I want it to be a widget so that I can take advantage of the bus for communications between widgets.
Anybody using FlexViewer1.3 has any inside on this?


I love all the features of FlexViewer 2.0 but I have to support flash 9
Tags (2)
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Jorge,

    Have you seen the code gallery for docakable and movable widgets for SFV 1.x?

http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&scriptID=16726

and here is a link where I took another developers resizable widgets and my movable widgets and combined them

http://forums.arcgis.com/threads/1805-Resizable-Widget-Issue
0 Kudos
JorgeFiallega
Emerging Contributor
Thanks a lot Robert. I think you hit right on.
I am going to try it now. Not sure how I missed that one.
I will comment later.
0 Kudos
JorgeFiallega
Emerging Contributor
I tried both versions, the one you attached to the discussion at
(a) http://forums.arcgis.com/threads/1805-Resizable-Widget-Issue and the latest at the code galery (b) http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&scriptID=16853
I found out the following:
The resizing works better in (a) where it is very smooth (it will get stuck in (b) )
The maximize-minimize bug is fixed in (b) but still exists in (a)

I compared both and they diverge quite a bit. I assume that fixing the issue of maximize-minimize has to do with the code changes in
private function maximizeWidget(event:MouseEvent):void
private function minimizeWidget(event:MouseEvent):void
private function closeWidget(event:MouseEvent):void
and the use of preMinWidth and preMinHeight

Is there anything else I should be merging ?
Any plans to put it up on the code galery?
Any plans to merge your new code 1.2.5 into it?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jorge,

     I not aware of an issue with the minimize and maximize. Now that the FlexViewer2.0 is out I don't plan on putting any more work into this code though. As far as I remember the preminwidth and height had to do with capturing the resized width and height of the widget so when it was re maximized it would not default back to it original size pre-resizing.
0 Kudos
JorgeFiallega
Emerging Contributor
Sorry Robert, maybe I was not very clear. The minimize-maximize bug is the one you fixed in the thread http://forums.arcgis.com/threads/180...e-Widget-Issue where you attched a zip with the fix. Maybe not a bug, just an undesiriable behaviour.

Ok So, for those who still need to work on FlexViewer 1.3 (support flash player 9) I have merged the different codes from
(a) http://forums.arcgis.com/threads/1805-Resizable-Widget-Issue
(b) http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&scriptID=16853
(c) http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&scriptID=16726

I am not sure if I should attach a zip here, since all I did was a "brute force" merge and this is getting out of control with so many versions.
Robert please advice. It may save somebody else a few hours.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jorge,

   Because the code contained my work and Melissa's, I was not going to post a new entry to the code gallery. You should as you say post what you have done to merge the code together here for others that are using the 1.x SFV still, to save them time and heartache. Make sure you add some tags to the thread for easier searching.
0 Kudos
ShaningYu
Honored Contributor
Robert:  I used your component 2 years for V1.3.  It was wonderful.  For Flexviewer V2.5, do you have the any update for it?  Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shaning Yu,

   ESRI did away completely with the idea of dynamic mixed layouts. I do not have an update for Flex Viewer 2.0.
0 Kudos