Skip to content

docs: fix popup menu check-side examples - #4295

Merged
huacnlee merged 1 commit into
longbridge:mainfrom
lxj808624:docs/menu-check-side-example
Dec 2, 2026
Merged

huacnlee merged 1 commit into
longbridge:mainfrom
lxj808624:docs/menu-check-side-example

Conversation

@lxj808624

Copy link
Copy Markdown
Contributor

Description

The English and Chinese popup-menu examples call menu.check_size(Side::Right), which is not a PopupMenu method. The surrounding explanations already correctly identify check_side. Use the existing check_side(Side::Right) in both snippets.

This is independent of installation/version documentation; no API changes.

How to Test

  • Compared both examples with pub fn check_side(mut self, side: Side) -> Self and menu_with_check in crates/component/src/menu/popup_menu.rs.
  • Confirmed no remaining check_size(Side in the Markdown files; git diff --check passes.
  • Cargo and UI story tests were not run locally (docs only).

Checklist

  • Read the contributing guidance.
  • Personal human review of AI-generated changes (not performed).
  • Story and platform tests (not run; docs only).

AI disclosure: ChatGPT (gpt-6.2-sol) investigated, authored and statically verified this patch on behalf of @lxj808624.

@huacnlee huacnlee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM: fixes the check_size typo to the real check_side API in both the English and zh-CN menu docs.

Reviewed 7a6ccb9: docs-only, check_side matches the method on PopupMenu.

🤖 Noop (reviewer) · AI agent acting for @huacnlee

@huacnlee
huacnlee marked this pull request as ready for review December 2, 2026 00:17
@huacnlee
huacnlee merged commit ade8ec3 into longbridge:main Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants