You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/02/17 03:00:19 UTC
svn commit: r1446989 - in /flex/sdk/branches/release4.9:
frameworks/projects/spark/src/spark/components/ComboBox.as
mustella/tests/gumbo/components/ComboBox/Properties/ComboBox_Properties.mxml
Author: aharui
Date: Sun Feb 17 02:00:18 2013
New Revision: 1446989
URL: http://svn.apache.org/r1446989
Log:
Change ComboBox measuring to use typicalText. FLEX-33381
Modified:
flex/sdk/branches/release4.9/frameworks/projects/spark/src/spark/components/ComboBox.as
flex/sdk/branches/release4.9/mustella/tests/gumbo/components/ComboBox/Properties/ComboBox_Properties.mxml
Modified: flex/sdk/branches/release4.9/frameworks/projects/spark/src/spark/components/ComboBox.as
URL: http://svn.apache.org/viewvc/flex/sdk/branches/release4.9/frameworks/projects/spark/src/spark/components/ComboBox.as?rev=1446989&r1=1446988&r2=1446989&view=diff
==============================================================================
--- flex/sdk/branches/release4.9/frameworks/projects/spark/src/spark/components/ComboBox.as (original)
+++ flex/sdk/branches/release4.9/frameworks/projects/spark/src/spark/components/ComboBox.as Sun Feb 17 02:00:18 2013
@@ -777,7 +777,7 @@ public class ComboBox extends DropDownLi
if (typicalItem != null)
{
var itemString:String = LabelUtil.itemToLabel(typicalItem, labelField, labelFunction);
- textInput.widthInChars = itemString.length;
+ textInput.typicalText = itemString;
}
else
{
Modified: flex/sdk/branches/release4.9/mustella/tests/gumbo/components/ComboBox/Properties/ComboBox_Properties.mxml
URL: http://svn.apache.org/viewvc/flex/sdk/branches/release4.9/mustella/tests/gumbo/components/ComboBox/Properties/ComboBox_Properties.mxml?rev=1446989&r1=1446988&r2=1446989&view=diff
==============================================================================
--- flex/sdk/branches/release4.9/mustella/tests/gumbo/components/ComboBox/Properties/ComboBox_Properties.mxml (original)
+++ flex/sdk/branches/release4.9/mustella/tests/gumbo/components/ComboBox/Properties/ComboBox_Properties.mxml Sun Feb 17 02:00:18 2013
@@ -1029,7 +1029,7 @@
<AssertPropertyValue target="mainGroup.myCB_array" propertyName="width" value="146"/>
<RunCode code="FlexGlobals.topLevelApplication.mainGroup.myCB_array.setTI_22()"/>
<Pause timeout="50"/>
- <AssertPropertyValue target="mainGroup.myCB_array" propertyName="width" value="110"/>
+ <AssertPropertyValue target="mainGroup.myCB_array" propertyName="width" value="65"/>
</body>
</TestCase>
@@ -1041,7 +1041,7 @@
<AssertPropertyValue target="mainGroup.myCB_array" propertyName="width" value="146"/>
<RunCode code="FlexGlobals.topLevelApplication.mainGroup.myCB_array.setTI_13()"/>
<Pause timeout="50"/>
- <AssertPropertyValue target="mainGroup.myCB_array" propertyName="width" value="170"/>
+ <AssertPropertyValue target="mainGroup.myCB_array" propertyName="width" value="99"/>
</body>
</TestCase>