Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK 2.0.1 (Release)
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Reproduction:
1.Paste the following to an mxml doc
//----------------------
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns:qa="http://www.macromedia.com/2005/flexqa" height="600" width="600" backgroundColor="white" >
<mx:Script>
<![CDATA[
var complexDP = [
,
{label: "pig", data:"oink"},
{label: "dog",data:"woof"},
,
{label: "snake",data:"hiss"}]
]]
>
</mx:Script>
<mx:HBox horizontalAlign="center" width="550" borderStyle="solid" backgroundColor="#CCCCFF">
<mx:Label text="ComboBox UIObject Inherited Styles in AS" fontSize="15" fontWeight="bold" />
</mx:HBox>
<mx:HBox horizontalAlign="center" width="550" borderStyle="solid" backgroundColor="#CCCCFF">
<mx:Text width="548" text="Directions: Click button next to each ComboBox to perform action mentioned on label to the left of the ComboBox. Verify each ComboBox is displayed according to the label to its left once button is clicked. Once all actioned are performed correctly, click checkbox at the bottom to pass test" />
</mx:HBox>
<mx:HBox horizontalAlign="center" width="550" borderStyle="solid" backgroundColor="#CCCCFF">
<mx:Label text="fontFamily" fontWeight="bold" />
</mx:HBox>
<mx:Form>
<mx:FormItem label="fontFamily = Symbol: " direction="horizontal">
<mx:ComboBox creationComplete="cb20.dataProvider=complexDP;" id="cb20" />
<mx:Button label="Set" click="cb20.setStyle('fontFamily', 'Symbol') ; " />
</mx:FormItem>
</mx:Form>
</mx:Application>
//-------------------
2.Press the set button
3.Observe the combo box
Actual Results: Only the first (displayed) item of the combobox takes the new font family applied
Expected Results: Font family should be applied to all the elements of the combobox
Workaround:None