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

Virtualization: requestedRowCount is not respected when horizontalAlign=justify

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 4.0 (Release)
    • Adobe Flex SDK Previous
    • Spark: DataGroup
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run this MXML:

      <?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:DataGroup width="120" itemRenderer="spark.skins.spark.DefaultItemRenderer" clipAndEnableScrolling="true">
      <s:layout>
      <s:VerticalLayout useVirtualLayout="true" horizontalAlign="justify" requestedRowCount="5" />
      </s:layout>
      <s:dataProvider>
      <s:ArrayList>
      <fx:String>1) The quick brown fox jumps over the lazy dog.</fx:String>
      <fx:String>2) The quick brown fox jumps over the lazy dog.</fx:String>
      <fx:String>3) The quick brown fox jumps over the lazy dog.</fx:String>
      <fx:String>4) The quick brown fox jumps over the lazy dog.</fx:String>
      <fx:String>5) The quick brown fox jumps over the lazy dog.</fx:String>
      <fx:String>6) The quick brown fox jumps over the lazy dog.</fx:String>
      <fx:String>7) The quick brown fox jumps over the lazy dog.</fx:String>
      <fx:String>8) The quick brown fox jumps over the lazy dog.</fx:String>
      <fx:String>9) The quick brown fox jumps over the lazy dog.</fx:String>
      </s:ArrayList>
      </s:dataProvider>
      </s:DataGroup>

      </s:Application>

      Actual Results:

      2.5 items are shown

      Expected Results:

      5 items should be shown

      Workaround (if any):

      Set useVirtualLayout="false"

      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: