Spark RichText and columns bug


/ Published in: MXML
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.