Select to view content in your preferred language

Popup media container size change

800
1
08-02-2012 11:27 AM
by Anonymous User
Not applicable
Hello,
I am trying to remove the image rectangle box in the PopUpRenderer because it does not fit the image.  I am using the PopUpMediaInfo object for this.  I have brought in the PopUpMediaBrowserSkin.mxml file so the adjustments can be made to the skin.  Can someone please tell me how the popUpMedioInfo object can reference the skin so the the changes can be seen in the app?  What directory should the skin be placed in? What else needs to be done so the changes can be seen on popups in the app? 

The direction I am going for is in the forum: http://forums.arcgis.com/threads/38375-Change-media-container-size-in-Pop-Up-Window but I would like more detail as to how to complete this.

Thanks,
Ray
Tags (2)
0 Kudos
1 Reply
RamaChintapalli
Esri Contributor
The host component for the "PopUpMediaBrowserSkin.mxml" is "PopUpMediaBrowser". So for any changes in PopUpMediaBrowserSkin.mxml to get reflected in the application, you would need to override the existing skin.

For that, perform the following steps,

1) Place the modified skin file in any project source folder ( for ex: com.esri.customSkins folder)

2) open the default.css file (default package) and include the following namespace,
@namespace skinComps "com.esri.ags.skins.supportClasses.*";

3) Also inlcude the following skinClass reference for "PopUpMediaBrowser",

skinComps|PopUpMediaBrowser
{
skinClass: ClassReference("com.esri.customSkins.PopUpMediaBrowserSkin");
}


Regards,
Rama
0 Kudos