Re: [flexcoders] Re: mx:Text maxWidth

2009-02-05 Thread Josh McDonald
Ack, I've just this minute come up on the same thing. This is annoying as
hell, I've used maxwidth all over the place without noticing it wasn't
working until now. What I want is to have my text centered if it's narrow,
and left justified (+ wrapped of course) if it exceeds maxWidth.

I need this, so I've created a bug:

https://bugs.adobe.com/jira/browse/SDK-19111

I should have it fixed in a short while, and you can monkey-patch my changes
or extend Text to do it, email me off-list if you want me to send you the
fix so you can monkey-patch it in.

-Josh

On Thu, Feb 5, 2009 at 12:53 PM, Sam Lai  wrote:

>   Don't have a solution, but you could wrap the Text control in a
> container, and set the maxWidth on the container instead.
>
> 2009/2/5 tchredeemed >:
>
> > What I want it to do is to allow it to grow to the maxWidth, and wrap
> > the text if it hits the max, right now it just cuts off the text after
> > the maxWidth...
> >
> > halp! :)
> >
> > --- In flexcoders@yahoogroups.com ,
> "tchredeemed"  wrote:
> >>
> >> Question:
> >>
> >> When I set the maxWidth on a text, it does not force to a new line
> >> (like when you explicitly set the width). Is there any way to set it
> >> so that it will force it to a new line if it exceeds the maxWidth,
> >> without having to reserve the space using "width?"
> >>
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
> >
> >
> >
> >
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: mx:Text maxWidth

2009-02-04 Thread Sam Lai
Don't have a solution, but you could wrap the Text control in a
container, and set the maxWidth on the container instead.

2009/2/5 tchredeemed :
> What I want it to do is to allow it to grow to the maxWidth, and wrap
> the text if it hits the max, right now it just cuts off the text after
> the maxWidth...
>
> halp! :)
>
> --- In flexcoders@yahoogroups.com, "tchredeemed"  wrote:
>>
>> Question:
>>
>> When I set the maxWidth on a text, it does not force to a new line
>> (like when you explicitly set the width). Is there any way to set it
>> so that it will force it to a new line if it exceeds the maxWidth,
>> without having to reserve the space using "width?"
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


[flexcoders] Re: mx:Text maxWidth

2009-02-04 Thread tchredeemed
What I want it to do is to allow it to grow to the maxWidth, and wrap
the text if it hits the max, right now it just cuts off the text after
the maxWidth...

halp! :)

--- In flexcoders@yahoogroups.com, "tchredeemed"  wrote:
>
> Question:
> 
> When I set the maxWidth on a text, it does not force to a new line
> (like when you explicitly set the width). Is there any way to set it
> so that it will force it to a new line if it exceeds the maxWidth,
> without having to reserve the space using "width?"
>