当设备有留海瓶的时候,如何获取到除去留海高度,以及navigationBar的高度之后的内容区域的高度?
使用wx.getSystemInfoSync()获取信息如下。
很迷惑,望各位大神指点一下。
{model: "iPhone X", pixelRatio: 3, windowWidth: 375, windowHeight: 724, system: "iOS 10.0.1", …}
SDKVersion:"2.4.1"
batteryLevel:100
brand:"devtools"
fontSizeSetting:16
language:"zh"
model:"iPhone X"
pixelRatio:3
platform:"devtools"
screenHeight:812
screenWidth:375
statusBarHeight:44
system:"iOS 10.0.1"
version:"6.6.3"
windowHeight:724
windowWidth:375
__proto__:Object
windowHeight表示可使用窗口高度;
statusBarHeight状态栏的高度;
可以看看文档中这两个说明
https://developers.weixin.qq....