I've tried that, to no avail :-/

I'm thinking, could it possibly have something to do with using a
Repeater Object in the VBox?

Here's an excerpt:

<mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml";
xmlns:utl="util.*" horizontalGap="2" backgroundColor="#FFFFFF"
minHeight="1" vScrollPolicy="off">
        <mx:Metadata>
                [Event("closeSearchWindow")]
        </mx:Metadata>
        <mx:Script>
        <![CDATA[
                public var results:Object;
                
                function fireCloseEvent():Void{
                        dispatchEvent({type:'closeSearchWindow'});
                }
        ]]>
        </mx:Script>
        <mx:HBox backgroundColor="#C5CFE9" width="100%" height="10%">
                <mx:Label text="Search Results  1 - 5 of 254"/>
        </mx:HBox>
        <mx:VBox width="100%" height="80%" vScrollPolicy="on">
                <mx:Repeater id="rp"
dataProvider="{results.searchResults.result}">
                        <utl:AFLink textAlign="left"
label="{rp.currentItem.title}" textDecoration="underline"
fontWeight="bold" color="#0033CC" width="100%"
URL="{rp.currentItem.url}"/>
                        <mx:Text text="{rp.currentItem.teaser}"
width="100%"/>
                        <mx:Label text="{rp.currentItem.url}"
width="100%" color="#339933" fontWeight="bold"/>
                </mx:Repeater>
        </mx:VBox>
        <mx:Button width="100%" height="10%" label="Close"
click="fireCloseEvent()" backgroundColor="#0066CC"/> 
</mx:VBox>

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Thursday, August 04, 2005 11:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] vScrollPolicy acting real funny

On 8/4/05, Sauro, Nick <[EMAIL PROTECTED]> wrote:

> I have a SearchResults class which is a VBox.  Now, inside this Vbox,
I have
> a few components for a header("Search Results 1-4 of 253......").
Beneath that,
> I have another Vbox which displays the results. 

> Here's the problem. 

> I set the height of the header(which is just an HBox with some labels
in it)
> to 10%, and then I set the height of the nested VBox to 90%.  Now,
when I
> turn on vScrollPolicy on the nested VBox(or auto), I don't get a
scroll bar,
> so my results are getting cut off. 

Have you set an explicit height for the outer VBox?

Try setting minWidth="1" on the outer VBox and see if that helps.

Manish



--
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



 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hnmc3hg/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123177815/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

--
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/
 


Reply via email to