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

mx:Label disappears when scrolling a DataGroup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark: DataGroup
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run:

      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">

      <s:layout>
      <s:VerticalLayout />
      </s:layout>

      <s:Button label="1 - increase vsp by 150" click="group1.verticalScrollPosition = 150" />
      <s:Button label="2 - set vsp to zero" click="group1.verticalScrollPosition = 0" />

      <s:DataGroup id="group1" width="100" height="200" clipAndEnableScrolling="true">
      <s:layout>
      <s:VerticalLayout />
      </s:layout>
      <s:dataProvider>
      <s:ArrayList>
      <fx:String>0</fx:String>
      <fx:String>1</fx:String>
      <fx:String>2</fx:String>
      <fx:String>3</fx:String>
      <fx:String>4</fx:String>
      <fx:String>5</fx:String>
      <fx:String>6</fx:String>
      <fx:String>7</fx:String>
      <fx:String>8</fx:String>
      <fx:String>9</fx:String>
      </s:ArrayList>
      </s:dataProvider>
      <s:itemRenderer>
      <fx:Component>
      <s:ItemRenderer width="100" height="24">
      <s:Rect width="100%" height="100%" alpha="0.7">
      <s:fill><s:SolidColor color="0xA8C6EE" /></s:fill>
      </s:Rect>

      <mx:Label id="lbl" text="

      {data}

      " />
      </s:ItemRenderer>
      </fx:Component>
      </s:itemRenderer>
      </s:DataGroup>

      </s:WindowedApplication>

      2. Click button 1
      3.

      Actual Results:

      The Label's disappear

      Expected Results:

      The Label's don't disappear

      Workaround (if any):

      Use s:Label instead of mx:Label

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: