You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bi...@apache.org on 2016/03/01 03:36:25 UTC

git commit: [flex-sdk] [refs/heads/develop] - Additional fix for https://issues.apache.org/jira/browse/FLEX-34391 Ensure that StageText's viewport width and height values stay are less than stage.stageWidth and stage.stageHeight

Repository: flex-sdk
Updated Branches:
  refs/heads/develop f14dc1431 -> fd7de9f72


Additional fix for https://issues.apache.org/jira/browse/FLEX-34391
Ensure that StageText's viewport width and height values stay are less than stage.stageWidth and stage.stageHeight


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/fd7de9f7
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/fd7de9f7
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/fd7de9f7

Branch: refs/heads/develop
Commit: fd7de9f724219bff2b3096a8057fc830ccf07391
Parents: f14dc14
Author: OmPrakash Muppirala <bi...@gmail.com>
Authored: Mon Feb 29 18:34:35 2016 -0800
Committer: OmPrakash Muppirala <bi...@gmail.com>
Committed: Mon Feb 29 18:34:35 2016 -0800

----------------------------------------------------------------------
 .../src/spark/components/supportClasses/ScrollableStageText.as     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/fd7de9f7/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as b/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
index 18006ac..add0356 100644
--- a/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
+++ b/frameworks/projects/mobilecomponents/src/spark/components/supportClasses/ScrollableStageText.as
@@ -1650,6 +1650,8 @@ public class ScrollableStageText extends UIComponent  implements IStyleableEdita
 			globalRect.y = Math.max(globalRect.y, 0);
 		}
 		
+		globalRect.width = Math.min(globalRect.width, stage.stageWidth);
+		globalRect.height = Math.min(globalRect.height, stage.stageHeight);
 
         return globalRect;
     }