[flexcoders] vScrollPolicy acting real funny

2005-08-04 Thread Sauro, Nick










Hey flexers, just got a quick question
regarding scrolling policies.



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.



Heres 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
dont get a scroll bar, so my results are getting cut off.



Ive tried turning on/off/auto on
the parent VBox, and setting the nested VBoxs policy to on,
but Ill just get an empty scroller on the side. Is there something Im
missing? 



Thanks in advance



nick









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

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] vScrollPolicy acting real funny

2005-08-04 Thread Manish Jethani
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


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12htg0trh/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123176014/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/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/
 


RE: [flexcoders] vScrollPolicy acting real funny

2005-08-04 Thread Sauro, Nick
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=#FF
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=-1a 
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/
 




Re: [flexcoders] vScrollPolicy acting real funny

2005-08-04 Thread Manish Jethani
On 8/4/05, Sauro, Nick [EMAIL PROTECTED] wrote:
 I've tried that, to no avail :-/

Set minHeight to 1 on the inner VBox (the one you want the scrollbar
on).  It seems to work.

Manish


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hfad5e8/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123178394/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/
 





RE: [flexcoders] vScrollPolicy acting real funny

2005-08-04 Thread Sauro, Nick










Youre the man! Thanks J











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manish Jethani
Sent: Thursday, August 04, 2005
12:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
vScrollPolicy acting real funny





On 8/4/05, Sauro, Nick [EMAIL PROTECTED] wrote:
 I've tried that, to no avail :-/

Set minHeight to 1 on the inner VBox (the one you
want the scrollbar
on). It seems to work.

Manish








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

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.