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

ASF GitHub Bot commented on CB-13394:
-------------------------------------

Github user jcesarmobile commented on the issue:

    https://github.com/apache/cordova-plugin-statusbar/pull/88
  
    Thanks for the PR and sorry for not spotting it before.
    
    Instead of creating a new variable `_hideCalledFromExternal`you could have 
used  `_statusBarVisible` as it has the same value.
    
    I don't think hiding the statusbar on iPhone X when in landscape is the 
right approach here as it looks like a bug to me, it should respect the value 
on `prefersStatusBarHidden`, iPhone X is the only one ignoring that value, so I 
think that might change in a future version. My approach uses current status 
bar size for the bar, as right now iPhone X doesn't have the status bar in 
landscape, has height 0 and the fake view it's not shown neither, but if that 
changes in the future and iPhone X starts respecting `prefersStatusBarHidden` 
value my approach will continue working, while yours will always hide the 
status bar.
    
    Also your approach doesn't work fine when running in iPhones different from 
iPhone X and you call show when the in-call/hot-spot status bar is present and 
after that you rotate, the background view will remain with 40pt when rotated 
to landscape instead of resizing to 20pt (current size as  in-call/hot-spot 
status bar is 20pt in landscape).
    
    So, for now I'll keep my approach, but I'm still waiting for review from 
other users. So, please, can you give it a try?


> iPhone X StatusBar rendering in landscape
> -----------------------------------------
>
>                 Key: CB-13394
>                 URL: https://issues.apache.org/jira/browse/CB-13394
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-statusbar
>    Affects Versions: cordova-ios 4.5.0
>         Environment: iPhone X, iOS11 landscape mode
>            Reporter: Dan Field
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> When rotating the iPhone X into landscape mode, a thick bar with no status 
> indicators is rendered that covers content in the web view.  Default 
> applications on the phone hide the status bar when in landscape; this seems 
> to be the preferable solution, as the landscape statusbar shows no 
> information to the user.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to