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

HorizontalLayout/VerticalLayout virtualized measure() should take into account the preferred sizes of the live renderers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 4.0 (Release)
    • None
    • Layout - General
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run the attached application
      2. Mouse over an item renderer, the renderer expands and the list expands as well
      3. Mouse out of the item renderer

      Actual Results:
      The renderer shrinks, but the List does not (as it is using the cached dimensions).

      Expected Results:
      The renderer shrinks, and the List shrinks as well.

      Workaround (if any):
      Turn off virtualization

      Repro code:

      <?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"
      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

      <s:List x="48" y="44" useVirtualLayout="true">
      <s:layout>
      <s:VerticalLayout horizontalAlign="justify"/>
      </s:layout>

      <s:ArrayCollection>
      <fx:Array>
      <fx:String>Hello there</fx:String>
      <fx:String>11111 22222</fx:String>
      <fx:String>33333 44444</fx:String>
      </fx:Array>
      </s:ArrayCollection>

      <s:itemRenderer>
      <fx:Component>
      <s:ItemRenderer autoDrawBackground="true">
      <s:states>
      <s:State name="normal"/>
      <s:State name="hovered"/>
      </s:states>
      <s:Label text="

      {data}

      " explicitHeight.hovered="50"/>
      </s:ItemRenderer>
      </fx:Component>
      </s:itemRenderer>
      </s:List>
      </s:Application>

      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: