Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Found in 4.0.0.12327
Steps to reproduce:
1. Compile and run attached MXML file.
2. Click the button.
Actual Results:
The messageStyleName color+fontSize gets applied to the message (yay), title (boo), status (boo) and button (boo!).
Expected Results:
Dont do that.
Workaround (if any):
Set the messageStyleName, titleStyleName, statusStyleName, and buttonStyleName styles using CSS:
<mx:Style>
@namespace "http://www.adobe.com/2006/mxml";
Alert
{ /* Workaround: */ message-style-name: messSty; title-style-name: titleStyles; status-style-name: statusStyles; button-style-name: buttonStyles; }.messSty
{ color: red; fontSize: 24; }.titleStyles
{ color: black; fontSize: 12; fontWeight: bold; }.statusStyles
{ color: haloSilver; fontSize: 12; fontWeight: normal; }.buttonStyles
{ color: black; fontWeight: bold; fontSize: 12; }</mx:Style>