[flexcoders] Force a List to resize ? How ?

2006-05-19 Thread Jean-Luc ESSER





I have a VBox, no height specified (i want it to 
grow depending on his child).
Inside this box i put a List with xx 
rows.
How do i force my List to take the height of all 
its rows ?
That is, i don't want my list to scroll, i want it 
to resize so it shows all rows, and returns its height to my VBox.

It's been almost a full day now that i'm trying 
this ! I've been looking everywhere...
I'm pulling my hair off ! Help ! Please 
?

Jean-Luc





--
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
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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] Force a List to resize ? How ?

2006-05-19 Thread Jim Robson










Jean-Luc:



What happens when you set the height of the List component
to a multiple of the number of items in the list?



myList.height = numberOfItems * 17;



Does the component resize correctly?



Jim











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc ESSER
Sent: Friday, May 19, 2006 5:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Force a List
to resize ? How ?







I have a VBox, no height specified (i want it to grow
depending on his child).





Inside this box i put a List with xx rows.





How do i force my List to take the height of all its rows ?





That is, i don't want my list to scroll, i want it to resize
so it shows all rows, and returns its height to my VBox.











It's been almost a full day now that i'm trying this ! I've
been looking everywhere...





I'm pulling my hair off ! Help ! Please ?











Jean-Luc











--
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
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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] Force a List to resize ? How ?

2006-05-19 Thread Jean-Luc ESSER






If i do that, it works fine, but how can i get the 
height of an item dynamically ?
I need it if for example font-size for my item 
changes dynamically, it won't always be 17 !
Also, computing the height like this eats more 
ressources no ?

-JL

  - Original Message - 
  From: 
  Jim 
  Robson 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, May 19, 2006 1:45 PM
  Subject: RE: [flexcoders] Force a List to 
  resize ? How ?
  
  
  Jean-Luc:
  
  What happens when you set the 
  height of the List component to a multiple of the number of items in the 
  list?
  
  myList.height = numberOfItems * 
  17;
  
  Does the component resize 
  correctly?
  
  Jim
  
  
  
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On 
  Behalf Of Jean-Luc ESSERSent: Friday, May 19, 2006 5:38 
  AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Force a List to 
  resize ? How ?
  
  
  I have a VBox, no height specified 
  (i want it to grow depending on his child).
  
  Inside this box i put a List with 
  xx rows.
  
  How do i force my List to take the 
  height of all its rows ?
  
  That is, i don't want my list to 
  scroll, i want it to resize so it shows all rows, and returns its height to my 
  VBox.
  
  
  
  It's been almost a full day now 
  that i'm trying this ! I've been looking 
  everywhere...
  
  I'm pulling my hair off ! Help ! 
  Please ?
  
  
  
  Jean-Luc
  





--
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
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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] Force a List to resize ? How ?

2006-05-19 Thread Jean-Luc ESSER





Thanx Jim, i'll do that.
-JL

  - Original Message - 
  From: 
  Jim 
  Robson 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, May 19, 2006 2:19 PM
  Subject: RE: [flexcoders] Force a List to 
  resize ? How ?
  
  
  OK, I was assuming a 
  constant item height. Yes, you’ll have to do something to determine the 
  heights of the items, if they are variable. 
  
  I don’t think that 
  simple calculations like this are too resource intensive. I have used this 
  sort of method frequently, and on very large applications, with no noticeable 
  degradation in performance. 
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc ESSERSent: Friday, May 19, 2006 7:56 
  AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Force a List to 
  resize ? How ?
  
  
  
  If i do that, it works fine, but 
  how can i get the height of an item dynamically 
  ?
  
  I need it if for example font-size 
  for my item changes dynamically, it won't always be 17 
  !
  
  Also, computing the height like 
  this eats more ressources no ?
  
  
  
  -JL
  

- Original Message - 


From: Jim 
Robson 

To: flexcoders@yahoogroups.com 


Sent: Friday, 
May 19, 2006 1:45 PM

Subject: RE: 
[flexcoders] Force a List to resize ? How 
?


Jean-Luc:

What happens when you set the 
height of the List component to a multiple of the number of items in the 
list?

myList.height = numberOfItems * 
17;

Does the component resize 
correctly?

Jim





From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On 
Behalf Of Jean-Luc ESSERSent: Friday, May 19, 2006 5:38 
AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Force a List to 
resize ? How ?


I have a VBox, no height 
specified (i want it to grow depending on his 
child).

Inside this box i put a List 
with xx rows.

How do i force my List to take 
the height of all its rows ?

That is, i don't want my list to 
scroll, i want it to resize so it shows all rows, and returns its height to 
my VBox.



It's been almost a full day now 
that i'm trying this ! I've been looking 
everywhere...

I'm pulling my hair off ! Help ! 
Please ?



Jean-Luc

  





--
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
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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.