<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2010/02/06/setting-the-horizontal-scroll-policy-on-a-spark-dropdownlist-control-in-flex-4/ -->
<s:Application name="Spark_DropDownList_scroller_horizontalScrollPolicy_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009" 
        xmlns:s="library://ns.adobe.com/flex/spark" 
        xmlns:mx="library://ns.adobe.com/flex/mx" viewSourceURL="srcview/index.html" xmlns:rrinvisservice="services.rrinvisservice.*">
    
    <fx:Script>
        <![CDATA[
            import mx.events.FlexEvent;
            import mx.controls.Alert;
            import mx.core.ScrollPolicy;

            protected function ddl_creationCompleteHandler(event:FlexEvent):void
            {
                getAllRrinvisResult.token = rrinvisService.getAllRrinvis();
            }

        ]]>
    </fx:Script>
    <fx:Declarations>
        <s:CallResponder id="getAllRrinvisResult"/>
        <rrinvisservice:RrinvisService id="rrinvisService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    </fx:Declarations>
    
    <s:DropDownList id="ddl"
            width="100"
            horizontalCenter="0" top="20"
            open="ddl.scroller.setStyle('horizontalScrollPolicy', ScrollPolicy.OFF);" creationComplete="ddl_creationCompleteHandler(event)" labelField="account">
        <s:dataProvider>{getAllRrinvisResult.lastResult}</s:dataProvider>
    </s:DropDownList>
    
</s:Application>