Menu
getMenuButtonBoundingClientRect
TIP
The API usage is as follows: wx.getMenuButtonBoundingClientRect()
Functional description: Get the layout position information of the menu button (the capsule button in the upper right corner). The coordinate information is based on the upper left corner of the screen as the origin, and the method of use is .
Return value: Object。
Layout position information of menu button:
Properties Type Description width Number Width, unit: px height Number Height, unit: px top Number Upper boundary coordinate, unit: px right Number Right boundary coordinate, unit: px bottom Number Lower boundary coordinate, unit: px left Number Left boundary coordinate, unit: px