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 2014/03/19 02:40:45 UTC

[04/50] [abbrv] git commit: [flex-sdk] [refs/heads/new_android_skins] - FLEX-33860: Support for iOS7 status bar fix : do not display status bar on ios7 for fullScreen apps

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/new_android_skins
Commit: 51e3d452828f1270a907ecba13f98c099d98a3d0
Parents: 9d2a517
Author: mamsellem <ma...@systar.com>
Authored: Thu Feb 27 19:54:39 2014 +0100
Committer: mamsellem <ma...@systar.com>
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);