Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. run test app
2. select items in list:
caps_to_small_caps
lowercast_to_small_caps
inherit
3.
Actual Results:
runtime for each above value:
ArgumentError: Error #2008: Parameter typographicCase must be one of the accepted values.
at flash.text.engine::ElementFormat/set typographicCase()
at spark.components::Label/createElementFormat()[E:\dev\trunk\frameworks\projects\spark\src\spark\components\Label.as:661]
at spark.components::Label/http://www.adobe.com/2006/flex/mx/internal::composeTextLines()[E:\dev\trunk\frameworks\projects\spark\src\spark\components\Label.as:455]
at spark.components.supportClasses::TextBase/measure()[E:\dev\trunk\frameworks\projects\spark\src\spark\components\supportClasses\TextBase.as:533]
at mx.core::UIComponent/measureSizes()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:8042]
at mx.core::UIComponent/validateSize()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:7966]
at mx.managers::LayoutManager/validateSize()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:617]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:733]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]
Expected Results:
no error, consistent with asdoc:
Legal values are flashx.textLayout.formats.TLFTypographicCase.DEFAULT, flashx.textLayout.formats.TLFTypographicCase.CAPS_TO_SMALL_CAPS, flashx.textLayout.formats.TLFTypographicCase.UPPERCASE, flashx.textLayout.formats.TLFTypographicCase.LOWERCASE, flashx.textLayout.formats.TLFTypographicCase.LOWERCASE_TO_SMALL_CAPS, flashx.textLayout.formats.FormatValue.INHERIT.
Workaround (if any):
check mustella test cases, it seems we use constants defined in TypographicCase class, not TLFTypographicCase