public function Collapse():void { hostComponent.mapLeft = 10; hostComponent.mapTop = 60; hostComponent.mapRight = 10; hostComponent.mapBottom = 30; }
<fx:Metadata> [HostComponent("com.esri.viewer.managers.MapManager")] [ResourceBundle("ViewerStrings")] </fx:Metadata>
Solved! Go to Solution.
import com.esri.viewer.AppEvent; AppEvent.dispatch(AppEvent.MAP_RESIZE,{left: 10, top: 60, right: 10, bottom: 30});
import com.esri.viewer.AppEvent; AppEvent.dispatch(AppEvent.MAP_RESIZE,{left: 10, top: 60, right: 10, bottom: 30});