The problem of horizontal scrollbar in list and tree component

The following example does not have a horizontal scrollbar. As soon as I change horizontalScrollPolicy = "auto" width horizontalScrollPolicy = "on", it works fine. Does anyone know what happened to this example?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

    <mx:ArrayCollection id="ac">
        <mx:Array>
            <mx:Object name="Text Text Text Text"/>
            <mx:Object name="Text Text Text Text"/>
        </mx:Array>
    </mx:ArrayCollection>

    <mx:List id="myList" width="100" height="100" horizontalScrollPolicy="auto" maxWidth="100"
        dataProvider="{ac}"
        labelField="name"/>

     <mx:Tree width="100" height="100" horizontalScrollPolicy="auto" maxWidth="100"
        dataProvider="{ac}" labelField="name"  x="128" y="66"/>

</mx:Application>

thank you and welcome

Cyrill

+3
source share
1 answer

Bookmark this blog post: autoscanning for a flexible tree

Quote:

, ( ) horizontalScrollPolicy auto , . , . , ( ), , . , , maxHorizontalScrollPosition, .

+4

Source: https://habr.com/ru/post/1728722/


All Articles