Flex 4: Setting Spark List height to its content height

前端 未结 5 1939
囚心锁ツ
囚心锁ツ 2020-12-16 15:50

How to set a Spark List height to the height of its content?

Tried this:

var lastRow:IVisualElement =
                 myList.dataGr         


        
5条回答
  •  無奈伤痛
    2020-12-16 16:14

    In mxml you can do it like so:

    
        
            
        
    
    

    You set the requestedMinRowCount or the requestedRowCount in the layout inside the List. It got me before, too. Hope that helps.

提交回复
热议问题