开发者

<table> <table> in Flex Apps

开发者 https://www.devze.com 2022-12-22 12:13 出处:网络
I am learning flex and have written a l开发者_开发知识库ittle app with a TextArea that had data getting populated dynamically by embedding simple HTML (mostly for font styles)

I am learning flex and have written a l开发者_开发知识库ittle app with a TextArea that had data getting populated dynamically by embedding simple HTML (mostly for font styles)

I ran into a weird issue when I wanted to include images, the images in this case are small arrows as in reddit.com. My desired aligmnent is,

-------------
 o | foo bar
   | ffdfdfdf
   | fdfd
-------------
 o | dfdd
-------------

Where o in the first column is an image. Note that the borders are invisible. I just used a simple <Table></table> and works perfectly if I view the resulting HTML in a browser. However flash renders the table in a very screwed manner, I get something like this instead

--------------
 o   fooooooo
 ffffdfdf
 fdfd
-------------
 o   fff
--------------

If the second line has more than one line, the subsequent lines wrap around the first column. Is this a known problem?


Flash's (and hence Flex's) htmlText doesn't officially support tables to begin with.

Use a Datagrid instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消