Posted By

LeeProbert on 07/04/10


Tagged

richtext spark columnCount


Versions (?)

Spark RichText and columns bug


 / Published in: MXML
 

Seems to be a bug with RichText if you are using columnCount and using dynamic sizing of your component.

  1. <!--
  2.   if you use RichText like this it doesn't render the columns
  3. -->
  4.  
  5. <s:RichText
  6. textFlow="{TextFlowUtil.importFromXML(textFlowXML)}"
  7. columnCount="3"
  8.  
  9. left="50" right="50" top="100" bottom="100"
  10. />
  11.  
  12. <!--
  13.   but if you wrap it in a group and use the groups dimensions it works ...
  14. -->
  15.  
  16. <s:Group
  17. id="textBlock"
  18. left="50" right="50" top="100" bottom="100"
  19. >
  20. <s:RichText
  21. textFlow="{TextFlowUtil.importFromXML(textFlowXML)}"
  22. columnCount="3"
  23.  
  24. width="{textBlock.width}"
  25. height="{textBlock.height}"
  26. />
  27. </s:Group>

Report this snippet  

You need to login to post a comment.