Skip to main content
Inspiring
December 18, 2017
Answered

Air 28 ios11 StageWebView unexpected padding at the top

  • December 18, 2017
  • 3 replies
  • 1028 views

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 has been closed for replies.
Correct answer marcanw

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
January 22, 2018

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.

marcanwAuthor
Inspiring
January 13, 2018

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.

marcanwAuthor
Inspiring
December 20, 2017

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