flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurice Amsellem (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-33860) Support For iOS7 status bar
Date Sun, 08 Dec 2013 23:03:07 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13842782#comment-13842782
] 

Maurice Amsellem edited comment on FLEX-33860 at 12/8/13 11:02 PM:
-------------------------------------------------------------------

I have fixed the fullscreen issue (gap not disappearing when turning to FULLSCREEN) by listening
to stage.fullScreen event and temporarily setting the statusBarHeight to 0, and resetting
it back to its saved value, when stage.screenState returns to normal.
This works fine when switching from normal => fullscreen (the gap disappears).
However, when switching back from fullscreen to normal, the gap is still added twice as you
noticed (once by AIR and once by Flex).
It seems to me that this is an AIR issue, not a Flex one, and here is why:
on IOS7, AIR set the stage width/height to full screen at startup, even in app descriptor
"fullScreen" is set to false.
This is the correct behavior, as IOS7 status bar is now part of the application content.
When setting the stage to fullScreen, AIR does not change the stage dimensions, as it was
already full screen , but hides the status Bar.
However, when setting the stage.displayState back to normal,  AIR will add the gap,*which
is not correct*.
Then, if you rotate the device 180° (in normal state) the stage will be set again to full
screen.

So even if I commit the fix, you will still get a wrong behavior, until it's fixed in AIR.

I will probably file a JIRA a Adobe later.




was (Author: mamsellem):
I have fixed the fullscreen issue (gap not disappearing when turning to FULLSCREEN) by listening
to stage.fullScreen event and temporarily setting the statusBarHeight to 0, and resetting
it back to its saved value, when stage.screenState returns to normal.
This works fine when switching from normal => fullscreen (the gap disappears).
However, when switching back from fullscreen to normal, the gap is still added twice as you
noticed (once by AIR and once by Flex).
It seems to me that this is an AIR issue, not a Flex one, and here is why:
on IOS7, AIR set the stage width/height to full screen at startup, even in app descriptor
"fullScreen" is set to false.
This is the correct behavior, as IOS7 status bar is now part of the application content.
When setting the stage to fullScreen, AIR does not change the stage dimensions, as it was
already full screen , but hides the status Bar.
However, when setting the stage.displayState back to normal,  AIR will remove the gap,*which
is not correct*.
Then, if you rotate the device 180° (in normal state) the stage will be set again to full
screen.

So even if I commit the fix, you will still get a wrong behavior, until it's fixed in AIR.

I will probably file a JIRA a Adobe later.



> Support For iOS7 status bar
> ---------------------------
>
>                 Key: FLEX-33860
>                 URL: https://issues.apache.org/jira/browse/FLEX-33860
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Mobile: ActionBar
>    Affects Versions: Apache Flex 4.11.0
>         Environment: iOS 7
>            Reporter: Keith Lee
>             Fix For: Apache Flex 4.12.0
>
>
> iOS 7 now runs everything in full screen, with the status bar being transparent, so mobile
Flex applications now need a 20px padding at the top in order for action bar text to not be
obscured by the status bar text and symbols.
> * handle the case when  softkeyboardBehavior = "pan" and screen in scrolled for SKB



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message