sonykuriakose / tlftexteditor

Automatically exported from code.google.com/p/tlftexteditor
0 stars 0 forks source link

Chromecolor change in parent component will give errors about labelDisplay #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create new MXML Component ( for example spark Panel )
2. Place TLFTextEditor inside component
3. Change chromeColor of Panel

What is the expected output? What do you see instead?

The expected output is that the chromeColor of the spark panel changes, this 
does happen but throws an error inside of the skin class of the 
ToggleButtonIcon.

What version of the product are you using? On what operating system?

Please provide any additional information below.

I actually have a fix for this, which is really easy.

On line 15 of the IconToggleButtonSkin.mxml file make the "exclusions" array an 
empty array, since you replaced the original label with a BitmapImage it will 
not be able to find the labelDisplay property, as such it is no longer needed.

"static private const exclusions:Array = [];"

Original issue reported on code.google.com by nmb.pet...@gmail.com on 21 Aug 2012 at 4:21

GoogleCodeExporter commented 9 years ago
The same bug applies to IconButtonSkin and the fix is the same :)

Original comment by nmb.pet...@gmail.com on 21 Aug 2012 at 4:22