Skip to content

Align the Popup Menu under its child - #125534

Merged
auto-submit[bot] merged 8 commits into
flutter:masterfrom
ValentinVignal:flutter/popup-menu/align-under-the-child
May 2, 2023
Merged

Align the Popup Menu under its child#125534
auto-submit[bot] merged 8 commits into
flutter:masterfrom
ValentinVignal:flutter/popup-menu/align-under-the-child

Conversation

@ValentinVignal

Copy link
Copy Markdown
Contributor

Align the PopupMenu under its child.

Before:

image

After:

image

List which issues are fixed by this PR. You must list at least one issue.

Fixes#125474

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboardflutter-dashboardBot added p: material_ui material_ui package in flutter/packages framework flutter/packages/flutter repository. See also f: labels. labels Apr 26, 2023

@QuncCcccccQuncCccccc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice fix. Thanks for the contribution! LGTM:)

offset = Offset(
0.0,
button.size.height,
) + widget.offset;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: maybe we don't have to break line since it is pretty short:)

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@QuncCccccc

Copy link
Copy Markdown
Contributor

@ValentinVignal probably we need to rebase master because Google testing is failing:)

@ValentinVignal

Copy link
Copy Markdown
ContributorAuthor

@ValentinVignal probably we need to rebase master because Google testing is failing:)

Done :)

@QuncCccccc

Copy link
Copy Markdown
Contributor

@ValentinVignal probably we need to rebase master because Google testing is failing:)

Done :)

Thank you! Looks like there are some conflicts in packages/flutter/test/material/popup_menu_test.dart file

…align-under-the-child
# Conflicts:
#	packages/flutter/test/material/popup_menu_test.dart
@ValentinVignal

Copy link
Copy Markdown
ContributorAuthor

@QuncCccccc The conflicts are fixed in
Merge remote-tracking branch 'upstream/main' into flutter/popup-menu/…

@PiinksPiinks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@PiinksPiinks added the autosubmit Merge PR when tree becomes green via auto submit App label May 2, 2023
@auto-submit
auto-submitBot merged commit 00cd3ed into flutter:masterMay 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 3, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 3, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 3, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 3, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PopupMenuButton - padding shouldn't be used when PopupMenuPosition.under is used with a child

3 participants

@ValentinVignal@QuncCccccc@Piinks