You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/05/04 02:59:45 UTC
git commit: [flex-sdk] [refs/heads/develop] - FLEX-28861 Added back
in code for first guess - performance increase with large strings.
Updated Branches:
refs/heads/develop 74ab097da -> 8d6367aae
FLEX-28861 Added back in code for first guess - performance increase with large strings.
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/8d6367aa
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/8d6367aa
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/8d6367aa
Branch: refs/heads/develop
Commit: 8d6367aaeba7a4a76ee707f2c72ed3e35879673e
Parents: 74ab097
Author: Justin Mclean <jm...@apache.org>
Authored: Sat May 4 10:59:32 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Sat May 4 10:59:32 2013 +1000
----------------------------------------------------------------------
.../supportClasses/StyleableTextField.as | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/8d6367aa/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as b/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
index ce5fb3b..8b62d4f 100644
--- a/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
+++ b/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/StyleableTextField.as
@@ -1225,9 +1225,8 @@ public class StyleableTextField extends FlexTextField
// This should get us into the ballpark.
var s:String = originalText;
- // TODO (rfrishbe): why is this here below...it does nothing (see SDK-26438)
- //originalText.slice(0,
- // Math.floor((w / (textWidth + TEXT_WIDTH_PADDING)) * originalText.length));
+ s = originalText.slice(0,
+ Math.floor((w / (textWidth + TEXT_WIDTH_PADDING)) * originalText.length));
while (s.length > 1 && (measuredTextSize.x > w))
{