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:* [email protected] [mailto:[EMAIL PROTECTED]
> *On Behalf Of *JesterXL
> *Sent:* Wednesday, February 15, 2006 8:01 PM
> *To:* [email protected]
> *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:* [email protected] <mailto:[email protected]>
>
> *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=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
>
> Computer software development
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
>
> Software design and development
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
>
>
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw>
>
> Software development best practice
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=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/>.
>
>
> ------------------------------------------------------------------------
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/