FLEX-33860: Support for iOS7 status bar fix : do not display status bar on ios7 for fullScreen apps
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/51e3d452 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/51e3d452 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/51e3d452 Branch: refs/heads/master Commit: 51e3d452828f1270a907ecba13f98c099d98a3d0 Parents: 9d2a517 Author: mamsellem <[email protected]> Authored: Thu Feb 27 19:54:39 2014 +0100 Committer: mamsellem <[email protected]> Committed: Thu Feb 27 19:54:39 2014 +0100 ---------------------------------------------------------------------- frameworks/projects/spark/src/spark/components/Application.as | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/51e3d452/frameworks/projects/spark/src/spark/components/Application.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/spark/src/spark/components/Application.as b/frameworks/projects/spark/src/spark/components/Application.as index 3604668..a9626d5 100644 --- a/frameworks/projects/spark/src/spark/components/Application.as +++ b/frameworks/projects/spark/src/spark/components/Application.as @@ -388,7 +388,7 @@ public class Application extends SkinnableContainer * @private */ private static var _softKeyboardBehavior:String = null; - + /** * @private */ @@ -1368,6 +1368,11 @@ public class Application extends SkinnableContainer sm.stage.addEventListener("orientationChanging", stage_orientationChangingHandler); sm.stage.addEventListener("orientationChange", stage_orientationChange); sm.stage.addEventListener(FullScreenEvent.FULL_SCREEN, stage_fullScreenHandler) ; + + // if full screen app, clear status bar height + if ( sm.stage.displayState == StageDisplayState.FULL_SCREEN || sm.stage.displayState == StageDisplayState.FULL_SCREEN_INTERACTIVE ) { + setStyle("osStatusBarHeight", 0); + } } _url = LoaderUtil.normalizeURL(sm.loaderInfo);
