Direction of the TileList behaves strange

18 Apr

I stumbled into an incorrect working function of the TileList in Flex. It looks like they swopped a few variables around.

If you set the direction of the TileList to horizontal it looks like Flex doesn’t care about the option and just scolls vertical. After that I checked an Adobe quickstart guide to know sure that I wasn’t doing anything wrong. But I couldn’t find anything that I missed.

Because I hate it if things don’t work I try everything to get it working. So I tried to set the direction to vertical just to see if something was happening and now the TileList scolled horizontal… very strange.

here is a example with source code (right click)

TileList problem example

Maybe I’m doing something wrong? Do other people have the same problem?

Related posts:

5 Responses to “Direction of the TileList behaves strange”

  1. Thomas Ruehl 25. Apr, 2008 at 12:04 #

    Hi there. Don’t know, if this is still a ‘problem’ for you, but here’s how the drection property should be interpreted:

    The direction property of a TileList dosen’t affect the scrolling direction of the component at all! Furthermore, it specifies, how the TileList orders the individual tiles – in a vertical or a horizontal manner (2×2 matrix i.e.):

    vertical: [r1, c1], [r2, c1], [r1, c2], [r2, c2]
    horizontal: [r1, c1], [r1, c2], [r2, c1], [r2, c2]

    To define the direction and scrolling behaviour, you need to set the rowCount/columnCount properties and use verticalScrollPolicy and/or horizontalScrollPolicy.

    Cheers, Thomas

  2. Arno Manders 25. Apr, 2008 at 14:31 #

    The adobe quick start guide says something else. That it is for the scroll direction.

    And in this example I changed only the direction from vertical to horizontal:
    http://blog.arnomanders.nl/upload/flex/TileListTest2/TileListTest.html

    and the scroll direction also changed but still wrong in my opinion

  3. sandrar 10. Sep, 2009 at 14:58 #

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.

Trackbacks and Pingbacks

  1. Horizontal Scrollbar in TileList « saumya - 04. Dec, 2008

    [...] HOraizontal Scrollbar came in after I set  direction=”vertical”. After a googling a bit I found this( by Arno Manders), which confirmed me that this is the way to go. Thought I would share it immediately as somebody out there may be [...]

  2. Unknown Blog » Blog Archive » TileList direction Parameter ist verwirrend - 28. Jan, 2009

    [...] Direction of the TileList behaves strange [...]

Leave a Reply