getMenuButtonBoundingClientRect 部分机型获取值错误?
vivo x21 刘海屏手机
使用wx.getMenuButtonBoundingClientRect获取胶囊位置,获得top为8
所以这个值实际上是未计算statusBar高度的。但是其他手机都是计算了statusBar高度
这会导致在navigationStyle: 'custom’下实现自定义导航栏时,若依据胶囊位置定位会出错
vivo x21 刘海屏手机
使用wx.getMenuButtonBoundingClientRect获取胶囊位置,获得top为8
所以这个值实际上是未计算statusBar高度的。但是其他手机都是计算了statusBar高度
这会导致在navigationStyle: 'custom’下实现自定义导航栏时,若依据胶囊位置定位会出错