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

Dropdown menu #40

Closed
Kintaro opened this issue Jan 19, 2016 · 2 comments
Closed

Dropdown menu #40

Kintaro opened this issue Jan 19, 2016 · 2 comments

Comments

@Kintaro
Copy link
Contributor

Kintaro commented Jan 19, 2016

Is there a need for a dropdown menu? I came across a few instances where it might come in handy and would love to give a shot at it.

@jtdaugherty
Copy link
Owner

Please feel free!

As you tackle this, here are some things to be aware of. It seems to me that since a drop-down menu would want to pop up a floating layer with the list contents on top of the underlying UI, and since the only way to do that is to affect with the top-level [Widget] produced by the application's drawing function, an approach to this might need to touch both the application state (where you might embed the drop-down open/closed state) and the draw function (where you'd return an extra layer when the list is open). A trick to determine the location of the drop-down for positioning the layer would be to use a cursor position, but that might be awkward.

@jtdaugherty
Copy link
Owner

Since this isn't something I intend to do myself, I'm going to close this so we don't have any lingering tickets with unclear outcomes - but if you tackle this, I'll be happy to discuss it on the pull request when the time comes! Thank you!

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

No branches or pull requests

2 participants