<viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:viewer="com.esri.viewer.*" width="50%" height="50%" widgetConfigLoaded="init()"> <fx:Script> <![CDATA[ //this function called when the widget's configuration is loaded private function init():void { if (configXML) // checking for valid content in the configuration file { lbl.text = configXML.content || getDefaultString("helloContent"); } } ]]> </fx:Script> <viewer:WidgetTemplate id="helloWorld" width="100%" height="100%"> <viewer:layout> <s:VerticalLayout horizontalAlign="center" verticalAlign="middle"/> </viewer:layout> <s:Label id="lbl" fontSize="18" fontStyle="italic" fontWeight="bold"/> </viewer:WidgetTemplate> </viewer:BaseWidget>
There must be a way to set widget sizes as a % of the flash window size
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.