<fx:Style> .formStyle { indicatorGap: 5; labelWidth: 100; paddingBottom: 5; paddingLeft: 0; paddingRight: 0; paddingTop: 5; labelWidth: 250; } </fx:Style>
Chad, The popup that is used in the Viewer is actually part of the Flex API, so the source for it is not in the Viewers project structure. That being said it is easy to add the API's PopUpRendererSkin.mxml to your Flex Viewer project so that you can modify it and have it used by your viewer app. All you need to do is get the Flex API download from here:http://resources.arcgis.com/content/arcgis-flex-api-downloadWhen you unzip it you will have a arcgis_api_for_flex_2_4 folder drill down and find arcgis_api_for_flex_2_4\ArcGIS_Flex\skins\src\com\esri\ags\skins\PopUpRendererSkin.mxml and copy it to the clipboard.In the Flex Viewer project right click on src folder in the Package Explorer and choose New > Package and for the name field put com.esri.ags.skins and then paste the PopUpRendererSkin.mxml into that Package/folder.then look for vGroup.addElement(zoomToButton) and comment that line out.Then the next time you compile run your viewer the zoom to button should be gone.
Lefteris, You will have to export a release build and then copy everything from the bin-release folder to your web server.
Jonathan, Sure that is as easy as changing the style block in the PopUpRendererSkin.mxml<fx:Style> .formStyle { indicatorGap: 5; labelWidth: 100; paddingBottom: 5; paddingLeft: 0; paddingRight: 0; paddingTop: 5; labelWidth: 250; } </fx:Style>
<!--- @private --> <mx:Form id="descriptionForm" width="100%" height="100%" horizontalScrollPolicy="off" indicatorGap="5" labelWidth="150" paddingBottom="5" paddingLeft="0" paddingRight="0" paddingTop="5" verticalScrollPolicy="off"/>
esri|InfoWindow { content-background-alpha : 0; background-color : yellow; background-alpha : 0.8; border-style : solid; }
Does anyone know how to change the width of the column for the output results. I see labelwidth changes the column width for the filed name, but would like to widen the output column also.Thanks.
label.width = 143;
Miguel, You are editing the wrong file. You need to be editing the PopUpRendererSkin.mxml. Then you need to know if the popup is configured using the description or individual fields (these are two different code paths).
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.