Select to view content in your preferred language

Flexviewer 2.3 Popup Window Width

2514
6
08-26-2011 12:13 PM
HERSHSINGH
Deactivated User
Hello,

I am using the popup windows in the flexviewer but I do not know how to adjust the width of the windows.  I have text field that I am displaying which contains a lot of text, and a couple of the characters are getting cut off on the right hand side.  Any ideas of how I can adjust this?

Thanks in advance for the help.
Tags (2)
0 Kudos
6 Replies
HERSHSINGH
Deactivated User
After talking to ESRI tech support it appears that this is a known bug with the popups and has not been fixed with 2.4.  I was told I can fix the problem by modifying the .swf file but I have no experience doing so. 

Anybody have any other suggestions?

Thanks.
0 Kudos
HERSHSINGH
Deactivated User
anyone?

Is there a way I can modify an .mxml file for the flex api and somehow get it to work with my arcgis viewer for flex in order to change the width of my popup window?
0 Kudos
KarlWilson
Frequent Contributor
I asked the same question a while back:
http://forums.arcgis.com/threads/32821-Changing-the-size-of-pop-up-windows

There was a response posted but it was quite a complicated procedure so I abandoned it. Perhaps you will have more luck. Hopefully it will be resolved in the next release.

Regards,
Karl
0 Kudos
ShaunWeston
Frequent Contributor
To make changes to the pop-up in the Flex Viewer 2.4, you will need to download the Flex API Library, copy out of that the popuprenderer.mxml skin and place that where all the other skin files are located - \src\com\esri\viewer\skins

Open up this file in Flex Builder and make the changes you need to �?? In your case width and maxHeight

Then add this line of code into the defaults.css file

esri|PopUpRenderer

{

skinClass:ClassReference('com.esri.viewer.skins.PopUpRendererSkin');

}
0 Kudos
HERSHSINGH
Deactivated User
Thanks for the help....

But once I modify the popuprendererskin.mxml from the Flex API, where do I copy it into the ArcGIS Viewer for Flex?  I do not see any .mxml files (or a default.css file) in any of the directories.
0 Kudos
LefterisKoumis
Frequent Contributor
If you downloaded the source code for the viewer and opened it in flash builder you should be able to see the default.css under the src/default package and the folder to place the popuprenderer.mxml skin under com.esri.viewer/skins folder. If you don't see it then you need to go to the esri site and follow the steps for the developers to download and setup the flexviewer code in the flash builder (formely called flex builder).
0 Kudos