Hi 
show me the code  how your vertical list set to variable height=true , i need 
some thing of this sort to  apply on a popupmenubutton to reduce the height and 
width .please help me out.
thanks,
Tom.


--- On Fri, 11/20/09, mattgarland2000 <al...@pet-theory.com> wrote:


From: mattgarland2000 <al...@pet-theory.com>
Subject: [flexcoders] Re: HorizontalList itemRenderer size does not resize on 
refresh
To: flexcoders@yahoogroups.com
Date: Friday, November 20, 2009, 10:45 PM


  





I just noticed that when the largest answer randomly ends up in the first 
position, the result is fine, so it's definitely a matter of getting the 
horizontal list to act as if "variableRowHeight" is set to true, and not just 
take the measurement of the first renderer and go with that. 

--- In flexcod...@yahoogro ups.com, "mattgarland2000" <al...@...> wrote:
>
> I am using a horizontallist as an answer bar in an e-learning app. The 
> designer wants the answer boxes to stretch according to content (all should 
> have the same size, and there is a minimum).
> 
> This works fine when the dataProvider is set. BUT there is another 
> requirement: after a wrong answer is clicked, there is feedback and the 
> answers are scrambled. 
> 
> protected function tryAgain(event: Event):void
> {
> answers=CollectionU tils.noRepeatRan domizeXMLList( answers);
> answerListRef. dataProvider= answers;
> } 
> 
> After the scrambling, the text values are represented in their new places, 
> and the itemRenderers are resized--but all at the minimum size, so any over 
> the min size need scrollbars. The resize code is called it seems before the 
> data is set. 
> 
> I should mention that I have a similar vertical list, with 
> "variableRowHeight" set to true as well, and there the same code works fine. 
> 
> How do I force the HorizontalList to resize the renderers en masse after the 
> new text values are set?
>






Reply via email to