Updated Branches: refs/heads/develop debea17e6 -> 24c1d8f01
FLEX-33779 Label would RTE when truncating when set to multiline and there wasn't enough width Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/e1a65493 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/e1a65493 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/e1a65493 Branch: refs/heads/develop Commit: e1a654937e810c1688ab75eda1e3e6a654808b6e Parents: debea17 Author: Alex Harui <[email protected]> Authored: Fri Oct 18 12:40:06 2013 -0700 Committer: Alex Harui <[email protected]> Committed: Fri Oct 18 12:40:06 2013 -0700 ---------------------------------------------------------------------- frameworks/projects/spark/src/spark/components/Label.as | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e1a65493/frameworks/projects/spark/src/spark/components/Label.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/spark/src/spark/components/Label.as b/frameworks/projects/spark/src/spark/components/Label.as index 087d8a9..b8d4ff3 100644 --- a/frameworks/projects/spark/src/spark/components/Label.as +++ b/frameworks/projects/spark/src/spark/components/Label.as @@ -1379,6 +1379,11 @@ public class Label extends TextBase if (truncateAtCharPosition == 0) break; + // sometimes the player decides there isn't enough + // room to render anything so bail + if (textLines.length == 0) + break; + // Try again by truncating at the beginning of the // preceding atom. var oldCharPosition:int = truncateAtCharPosition;
