Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34925

spark List scroller doesn't update

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.14.1
    • None
    • Spark: List
    • Windows

    Description

      Hello,

      the spark Flex Scroller doesn't update when the dataProvider change on Windows

      Steps to reproduce :
      click on "Add List" button, then click on "Replace List" button

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
          xmlns:s="library://ns.adobe.com/flex/spark">
          <s:layout>
              <s:VerticalLayout/>
          </s:layout>
          
          <fx:Script>
              <![CDATA[
                  private function addListToDP():void {
                      myList.dataProvider.addItem("Flex hjjhjh hjjhhjhj hjjhhjhj jhjhhjhj hjhjhjhj hjjhhjjhh jhhjhj");
                  }
      
                  private function replaceListToDP():void {
                      myList.dataProvider.setItemAt("Flex hjjhjh hjjj", 0);
                  }
              ]]>
          </fx:Script>
      
          <s:List id="myList" width="200">
      		<s:ArrayList/>
      	</s:List>
          
          <s:Button label="Add List"
              click="addListToDP();"/>
          <s:Button label="Replace List"
              click="replaceListToDP();"/>
      </s:Application>
      

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            pol2095 pol poggi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 10.2h
                10.2h
                Remaining:
                Remaining Estimate - 10.2h
                10.2h
                Logged:
                Time Spent - Not Specified
                Not Specified