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

Add option to show at anchor location. #28

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from

Conversation

geftimov
Copy link

@geftimov geftimov commented May 5, 2022

Hello @saket,
first of all great library.

This is my take on "fixing" #21 and #26
This PR is for you to have a look at a potential solution.
Showing at location is trying always fit the popup in the current window.

ezgif.com-gif-maker.mp4

@Goooler
Copy link
Contributor

Goooler commented Jul 12, 2022

@saket CC

@geftimov
Copy link
Author

@Goooler @saket I uploaded a video in the PR description showing a recycle view with items that are showing menu from anchor or as a dropdown. It is as follows :

  1. If true - show from achor
  2. If false - show as dropdown

@fobos531
Copy link

Hey @saket , do you think it would be possible to merge this?

}
}

private fun showCascadeMenu(anchor: View) {
private fun showCascadeMenu(anchor: View, showAtLocation: Boolean) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
private fun showCascadeMenu(anchor: View, showAtLocation: Boolean) {
private fun showCascadeMenu(anchor: View, fromAnchor: Boolean) {

@zs1973
Copy link

zs1973 commented Nov 21, 2022

why not merge?what are @saket doing

@Goooler
Copy link
Contributor

Goooler commented Aug 8, 2023

@saket Can we merge this? It would be very useful.

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.

None yet

4 participants