MrLoick / mad-components

Automatically exported from code.google.com/p/mad-components
1 stars 0 forks source link

UIList have a litter bug when custom renderer components #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
  Custom list render with a image, the image source is a displayobject not a string, like:
 image:String = '<image width="'+w+'" height="'+h+'" scale="true" id="thumbImg"></image>',
 listData:XML = <list id="idList" autoResize="false">                                              <vertical>                                       {new XML(image)}                                        <label id="labelPage"/>                                 </vertical>
</list>; 

What is the expected output? What do you see instead?
It will en-count a error, no image showed.

What version of the product are you using? On what operating system?
I do not know where to get the version, but I download it from svn at 5/17/2013

Please provide any additional information below.
This bug can be fixed by modify only one line in UIList:
change line 798:
  var value:String = record[id];
to:
  var value:* = record[id];

author is from smlme.com

Original issue reported on code.google.com by neuglsWo...@gmail.com on 20 May 2013 at 3:14