Skip to content

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:

    PropertiesTypeDescription
    widthNumberWidth, unit: px
    heightNumberHeight, unit: px
    topNumberUpper boundary coordinate, unit: px
    rightNumberRight boundary coordinate, unit: px
    bottomNumberLower boundary coordinate, unit: px
    leftNumberLeft boundary coordinate, unit: px