ViewerContainer.getInstance().widgetManager.getWidget(id);
Update this function: protected override function partAdded(partName:String, instance:Object):void { super.partAdded(partName, instance); if (instance == map) { var cssStyleDeclaration:CSSStyleDeclaration = styleManager.getStyleDeclaration("com.esri.ags.components.supportClasses.InfoWindow") cssStyleDeclaration.setStyle("backgroundColor", getStyle('contentBackgroundColor')); styleManager.setStyleDeclaration("com.esri.ags.components.supportClasses.InfoWindow", cssStyleDeclaration, true); //My Add map.addEventListener(MapEvent.LOAD, mapLoadComplete); //End My Add } }
Also I found the code that would set the Grid results to display left aligned. I can adjust the width in the SearchWidgetFloatDG.mxml but don't see anything for the horizontal alignment.
<symbols> <simplefillsymbol color="0x000000" alpha="0.0"> <outline color="0x000000" alpha="0.0" width="2"/> </simplefillsymbol> <!-- You can have one or the other, either simplemarkersymbol or picturemarkersymbol defined for your point results NOT BOTH. picturemarkersymbol will override simplemarkersymbol if you do not have it commented out. --> <!--<simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.0" xoffset="0" yoffset="0" angle="0"> <outline style="solid" color="0x000000" alpha="1" width="1"/> </simplemarkersymbol>--> <picturemarkersymbol url="assets/images/i_search2.png" height="30" width="30" xoffset="0" yoffset="0" /> <simplelinesymbol color="0xff0000" alpha="0.8" width="2"/> </symbols>