复现方式:真机调试,旋转屏幕,发现api返回的胶囊rect的值没有变化,始终是页面第一次打开时的那个值,开发者工具中没有这个问题
- 页面 json 设置 pageOrientation 为 auto
- 页面的onLoad如下
console.log(wx.getMenuButtonBoundingClientRect())
wx.onWindowResize((result) => {
console.log(wx.getMenuButtonBoundingClientRect())
})
微信开发者工具 Stable 1.06.2504030 调试版本 2.24.7,3.x 等都没有问题
安卓 微信 8.0.63 稳定复现
