It's looking right in B2 I think.  I'd just add a resize handler for the
application that updates the text width for now as a workaround.

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Benoit Hediard
Sent: Thursday, March 02, 2006 8:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 bug with mx:Text, incorrect height with
width="100%"

One of the most annoying layout problem I'm currently facing on Flex2...
;)
 
When using width="100%" the height of the Text component is never
correct.
It looks like the height always equals the height of the text before the
resize to the new width.
 
Ex. : 
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml";>

<mx:Text text="Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Fusce enim leo, condimentum eu, feugiat a, viverra vitae, nulla. Quisque
dapibus, ipsum eget consequat aliquam, turpis lacus malesuada sem, sed
blandit magna augue in eros." width="100%" /> 

<mx:HRule />

<mx:Text text="Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Fusce enim leo, condimentum eu, feugiat a, viverra vitae, nulla. Quisque
dapibus, ipsum eget consequat aliquam, turpis lacus malesuada sem, sed
blandit magna augue in eros." /> 

<mx:HRule />

</mx:Application>

As a workaround, I usually create a binding constraint between the Text
width and a parent document width.
But it generates problems when the browser is resize and/or scrollbars
appear.

So :
1. Is it a bug?
2. What is the best workaround?

Thanks.

Benoit Hediard





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



 




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