# Object wx.getMenuButtonBoundingClientRect()

Start from base library version 2.1.0. Please remaining backward compatible.

Gets the location of the menu button (the Mini Program control button in the upper right corner). The top left corner of the screen is the origin.

# Return Values

# Object

The location of the menu button

Property Type Description
width number Width (in px)
height number Height (in px)
top number The coordinate of the upper boundary (in px)
right number The coordinate of the right boundary (in px)
bottom number The coordinate of the bottom boundary (in px)
left number The coordinate of the left boundary (in px)
点击咨询小助手