【问题标题】:Capacitor iOS App doesn't scale to full heightCapacitor iOS App 无法缩放到全高
【发布时间】:2021-03-11 16:20:45
【问题描述】:

我创建了一个基于电容器的应用程序。一切都在 Android 上运行良好。但是在 iOS 上,电容 WebView 并没有填满可用的高度。 以下屏幕截图说明了该问题。在那里,我在 WebView 所在的区域上放置了一个白框。在 WebView 中,一切都按预期工作。通过 Xcode 调试应用时,WebView 的框架返回以下信息:

CGRect? (origin = (x = 0, y = 0), size = (width = 320, height = 480))

我已经尝试调整该框架的大小,但顶部和底部的黑色区域仍然存在。

【问题讨论】:

标签: ios capacitor


【解决方案1】:

我对电容器知之甚少,但在 Ionic/coredova 应用程序 viewport-fit=cover 中用于删除空白

<meta name="viewport" content="initial-scale=1,user-scalable=no, width=device-width, height=device-height, viewport-fit=cover">

我从下面的链接中找到了这个解决方案: Remove White space

【讨论】:

  • 谢谢,但是 viewport-fit 已经设置为那个值了。
猜你喜欢
  • 1970-01-01
  • 2021-11-29
  • 2017-10-18
  • 2011-11-10
  • 2020-06-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-10-11
相关资源
最近更新 更多