tencent cloud

All product documents
Tencent Cloud Super App as a Service
Last updated: 2025-04-10 18:18:33
Menu
Last updated: 2025-04-10 18:18:33

getMenuButtonBoundingClientRect

This API is used via wx.getMenuButtonBoundingClientRect().
Feature Description: Gets information about the layout position of the menu button (capsule button in the upper right corner). The coordinate information has the upper left corner of the screen as the origin .
Return Value: Object.
Layout Position Information of the Menu Buttons:
Attribute
Type
Description
width
number
Width, measured in pixels (px)
height
number
Height, measured in pixels (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

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon