wx.getMenuButtonBoundingClientRect().top在iphone11值

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 20:43 1908 0 全屏看文

AI助手支持GPT4.0

wx.getMenuButtonBoundingClientRect().top在iphone11值
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小游戏 Bug wx.getMenuButtonBoundingClientRect() 微信iOS客户端 7.0.14 2.11.3

API:wx.getMenuButtonBoundingClientRect()

文档地址:https://developers.weixin.qq.com/minigame/dev/api/ui/menu/wx.getMenuButtonBoundingClientRect.html


代码片段:


模拟器中效果图:


iphone11手机中返回结果:

手机操作系统:IOS13.5.1

微信版本:IOS 7.0.14

微信小游戏基础库版本:2.11.3


其他手机暂时未发现问题


Framework type problem type API / component name terminal type wechat version basic library version games bug wx.getMenuButtonBoundingClientRect () wechat IOS client 7.0.14 2.11.3 API:wx.getMenuButtonBoundingClientRect () document address: https://developers.weixin.qq.com/minigame/dev/api/ui/menu/wx.getMenuButtonBoundingClientRect.html Code fragment: Wechat OS version 11.3.0: mobile phone OS version 11.3.0 wx.showToast ({ title: ""+ wx.getMenuButtonBoundingClientRect ().top, icon: 'none' })

回答:

小游戏运营专员-宏:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

-EOF-

AI助手支持GPT4.0