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

Ensure that DropDownMenus are always onscreen #3742

Merged
merged 1 commit into from
May 5, 2016

Conversation

abarth
Copy link
Contributor

@abarth abarth commented May 4, 2016

This patch sizes the menu such that it is always on screen, but doesn't scroll
the menu to ensure that the currently selected item is always visible and on
top of the button. That will need to wait for a later patch.

Also, teach CustomPaint how to repaint animations more efficiently.

Fixes #3720

/// Abstract const constructor. This constructor enables subclasses to provide
/// const constructors so that they can be used in const expressions.
const CustomPainter();
/// The painter will repaint whenever the [repaint] animation ticks.
Copy link
Contributor

Choose a reason for hiding this comment

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

Creates a CustomPainter. ...

@Hixie
Copy link
Contributor

Hixie commented May 4, 2016

LGTM

This patch sizes the menu such that it is always on screen, but doesn't scroll
the menu to ensure that the currently selected item is always visible and on
top of the button. That will need to wait for a later patch.

Also, teach CustomPaint how to repaint animations more efficiently.

Fixes flutter#3720
@abarth abarth merged commit 6a46bf2 into flutter:master May 5, 2016
@abarth abarth deleted the onscreen_drop_down branch May 5, 2016 00:13
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropdown extends off the top of the screen
2 participants