Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.1 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Add a toolTip to a component
2. Try to set the styles "shadowDistance" or "dropShadowColor" to any custom value on ToolTip (as stated in the livedocs)
3. The drop shadow will always have the default style.
Actual Results:
The drop shadow will always have the default style.
Expected Results:
The drop shadow should have the custom dropShadowColor and the custom shadowDistance
Workaround (if any):
Patch the class mx.skins.halo.ToolTipBorder so it does not use hardcoded values.
Example diff:
143,144c149,153
< var shadowColor:uint = getStyle("shadowColor");
< var shadowAlpha:Number = 0.1;
—
> var shadowColor:uint = getStyle("dropShadowColor");
> var shadowAngle:uint = getStyle("shadowAngle");
> var shadowDistance:uint = getStyle("shadowDistance");
> var shadowAlpha:Number = getStyle("shadowAlpha");
> shadowAlpha = isNaN(shadowAlpha) ? 0.1 : shadowAlpha;
163,166c172,175
< dropShadow.distance = 3;
< dropShadow.angle = 90;
< dropShadow.color = 0;
< dropShadow.alpha = 0.4;
—
> dropShadow.distance = shadowDistance;
> dropShadow.angle = shadowAngle;
> dropShadow.color = shadowColor;
> dropShadow.alpha = shadowAlpha;