Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Found in 4.1.0.14193
Steps to reproduce:
1. Consider the following MXML code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<s:controlBarContent>
<s:Label id="sdkVer" initialize="sdkVer.text = mx_internal::VERSION;" />
<s:Label text="
" />
</s:controlBarContent>
<s:layout>
<s:HorizontalLayout paddingLeft="20" paddingTop="20" />
</s:layout>
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
mx|ProgressBar
{ layoutDirection: rtl; direction: rtl; }</fx:Style>
<mx:ProgressBar id="pb1" label="one two three" indeterminate="true" initialize="pb1.setProgress(7,10);" />
<mx:ProgressBar id="pb2" label="one two three" indeterminate="true" initialize="pb2.setProgress(7,10);" />
</s:Application>
Actual Results:
The mx:ProgressBar already has a "direction" property, which means there is no way to define the direction style in MXML, so it can only be set via ActionScript or CSS. The problem is that when trying to set the layoutDirection or direction styles in an <fx:Script> block, you get no code hints. Not sure if we're missing embed metadata or if something more sinister is going on.
Expected Results:
CSS code hints for layoutDirection and direction styles.
Workaround (if any):
Use ye ol' LangRef.