小程序右上角的关闭和设置按钮,有获取偏移量的api吗?

image

如图,微信小程序右上角会有系统默认的两个按钮,适配的时候需要去获取偏移量,这个有api可以获取吗

1赞

应该是用微信自己的api吧
https://developers.weixin.qq.com/miniprogram/dev/api/ui/menu/wx.getMenuButtonBoundingClientRect.html

1赞