Try setting direction to horizontal. With
the direction vertical if you had more than one column you’d see it go
down first and then right which means extra stuff goes off to the right. In
the horizontal case you go right and then down, so the extra stuff goes off the
bottom and the scrollbar should be correct.
Matt
Hello,
This just seems like a dumb question but, I have the code below;
[code]
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"
xmlns="*"
layout="vertical"
creationComplete="addHoldsToList();">
<mx:Script>
<![CDATA[
import HandHold;
var dp:Array =
[
{name:"HandHold 1",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 2",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 3",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 4",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 5", source:"images/icon_projectsLarge.png"},
{name:"HandHold 6",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 7",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 8", source:"images/icon_projectsLarge.png"},
{name:"HandHold 9",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 10",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 11",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 12",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 13",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 14",
source:"images/icon_projectsLarge.png"},
{name:"HandHold 15",
source:"images/icon_projectsLarge.png"}
];
public function
addHoldsToList()
{
}
]]>
</mx:Script>
<mx:Panel width="750" height="600"
layout="absolute">
<mx:TileList x="10"
y="10" height="549" width="200"
dataProvider="{dp}"
direction="vertical"
id="holdList"
listItemRenderer="HandHold"
columnCount="1"
selectedIndex="2">
</mx:TileList>
</mx:Panel>
</mx:Application>
[/code]
Why is the vertical scrollbar not showing? There is defintely enough items in
the dp to register the scroll bar.
If I ture vScrollPolicy to on, the scroll bar is there but no setScrollProperties(0
has been called on it?
Any thoughts?
Peace, Mike
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS