The problem is the 100% specifications on everything. Something has
to limit the HBox's width to the ViewStack's width, otherwise the whole
Application will grow to a size that contains everything without scrolling.
Try this:
mx:HBox width={vs.width} hScrollPolicy=auto
... . .. .j
Graham, Jason wrote:
Heres basically what I did, the LinkBar still forces the application to
resize to the length of the link bar. TabBar has the same behavior. I
tried hScrollPolicy=”auto” also, tried putting the hScrollPolicy on the
linkbar as well. Still no work, the HBox doesn’t seem to have any affect.
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns=*
mx:HBox width=100% hScrollPolicy=on
mx:LinkBar dataProvider=vs/mx:LinkBar
/mx:HBox
mx:ViewStack id=vs width=100% height=100%
mx:Panel title=1 label=TESTING LINK BAR LENGTH
width=100% height=100%/mx:Panel
mx:Panel title=2 label=TESTING LINK 1BAR LENGTH
width=100% height=100%/mx:Panel
mx:Panel title=3 label=TESTING LINK 2 width=100%
height=100%/mx:Panel
mx:Panel title=4 label=TESTING LINK 3BAR LENGTH
width=100% height=100%/mx:Panel
mx:Panel title=5 label=TESTING LINK 4BAR LENGTH
width=100% height=100%/mx:Panel
mx:Panel title=6 label=TESTING LINK 5BAR LENGTH
width=100% height=100%/mx:Panel
mx:Panel title=7 label=TESTING LINK 6BAR LENGTH
width=100% height=100%/mx:Panel
mx:Panel title=8 label=TESTING LINK 7BAR LENGTH
width=100% height=100%/mx:Panel
mx:Panel title=9 label=TESTING LINK 8BAR LENGTH
width=100% height=100%/mx:Panel
/mx:ViewStack
/mx:Application
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
*On Behalf Of *JesterXL
*Sent:* Wednesday, February 15, 2006 8:01 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] LinkBar questions - Flex 1.5
Bug? :: shugs ::
Fix? Throw it in an HBox with hScrollPolicy = auto
- Original Message -
*From:* Graham, Jason mailto:[EMAIL PROTECTED]
*To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
*Sent:* Wednesday, February 15, 2006 8:40 PM
*Subject:* [flexcoders] LinkBar questions - Flex 1.5
The LinkBar appears not to scroll, if I hook it up to a view stack with
say 15 items in the view stack it causes the application to resize to
the length of the LinkBar which can be very long.
Is this a bug? Is there a way to fix this? I have tried to turn on the
hScrollPolicy to no avail.
THanks
--
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
Web site design development
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
Computer software development
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
Software design and development
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
Macromedia flex
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw
Software development best practice
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
YAHOO! GROUPS LINKS
* Visit your group flexcoders
http://groups.yahoo.com/group/flexcoders on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service http://docs.yahoo.com/info/terms