Here is my list:

<s:List id="myList" preventSelection="true"
                percentWidth="100" percentHeight="100"
verticalScrollPolicy="{ScrollPolicy.OFF}"
                itemRenderer="MyItemRenderer"
                interactionMode="touch" pageScrollingEnabled="true"
                dataProvider="{arrayOfFourElements}">
                <s:layout>
                    <s:HorizontalLayout gap="1" />
                </s:layout>
        </s:List>

Strange things:

- when setting the gap to 0 the scrolling don't work anymore... a bug?

- I set the itemrenderers width to "width of the list - 1". The first item I
see is the second item and just scrolling 1 pixel will switch instantly with
a flashing to the first item (without scrolling) - another bug?

                override protected function measure():void
                {
                        super.measure();
                        var parent:DisplayObject = this.parent;
                        while(parent is List == false)
                        {
                                parent = parent.parent;
                        }
                        measuredWidth =  parent.width > 1 ? parent.width - 1
: parent.width;
// this also will break the list...: parent.width - 1;
                }
(Is there a better way to get the lists with from within an itemrenderer?)

Best regards,

Christian 



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Mobile-Problems-with-List-and-HorizontalLayout-and-pageScrollingEnabled-tp8794.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to