Skip to main content
Inspiring
Dec 18, 2017 11:38 PM UTC
Answered

Air 28 ios11 StageWebView unexpected padding at the top

I'm facing an annoying behavior with the StahgeWebView on iOS11 from Air 28. There is a padding of 20px (sys bar size) at the top of the ViewController.

It seems that from Xcode 9 Apple add an optional "safe area" which is enabled by default.

See more info here: swift - Status bar entire view down- iOS 11 - Stack Overflow

I can understand this option but it clearly broke the StageWebView compatibility from previous Air versions. Moreover it creates a different behavior than android.

Is it possible to disable this option or to have access to it?

Let me know.

Thank you.

This topic is closed to new replies. Start a new post to keep the conversation going.
marcanwCorrect answer
Inspiring
Jan 22, 2018 9:43 AM UTC

Ok I found a solution.

In case someone face the same issue, you just need to add viewport-fit=cover in the viewport meta tag and the problem is solved for me.

3 replies

marcanwAuthorCorrect answer
Inspiring
Jan 22, 2018 9:43 AM UTC

Ok I found a solution.

In case someone face the same issue, you just need to add viewport-fit=cover in the viewport meta tag and the problem is solved for me.

Translate
marcanwAuthor
Inspiring
Jan 13, 2018 1:18 PM UTC

Any chance to look into this. Without the correct behavior, I'm stuck to air 27.

It also means that any app that uses stagewebview on iOS will face the same issue.

Thank you for your help.

Translate
marcanwAuthor
Inspiring
Dec 20, 2017 11:31 PM UTC

Here is a test on air 28

And on Air 27

I add a bug in Adobe tracker with a test fla: Tracker

I hope this will help solve the problem.

Cheers

Translate