Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix showMenu's PopupMenu offset given initialValue #29705

Closed
wants to merge 1 commit into from

Conversation

shihaohong
Copy link
Contributor

@shihaohong shihaohong commented Mar 20, 2019

Description

Currently, the calculation for the offset for showMenu given an initialValue results in incorrect behavior. This fix resolves the problem. Documentation has been reworded to improve clarity of behavior.

Related Issues

Fixes #29505

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes tests for all changed/updated/fixed behaviors (See Test Coverage).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

@shihaohong shihaohong changed the title Fix PopupMenu showMenu initialValue offSet Fix showMenu's PopupMenu offset given initialValue Mar 20, 2019
@shihaohong
Copy link
Contributor Author

I realized that tests covering the PopupMenuButton widget is not as extensive as I would have liked, and fear that this change will cause unintended side-effects for other widgets that implement showMenu. I will close this for now and look into the possibility of adding more tests to ensure nothing else breaks.

@shihaohong shihaohong closed this Mar 21, 2019
@shihaohong shihaohong deleted the popup-menu branch May 14, 2019 17:39
@edwin-alvarez
Copy link

@shihaohong maybe you can try this out #24843

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.

Popup menu shown at wrong position
3 participants