Skip to content

Add option to show at anchor location.#28

Open
geftimov wants to merge 5 commits intosaket:trunkfrom
geftimov:trunk
Open

Add option to show at anchor location.#28
geftimov wants to merge 5 commits intosaket:trunkfrom
geftimov:trunk

Conversation

@geftimov
Copy link
Copy Markdown

@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

Comment thread cascade/src/main/java/me/saket/cascade/CascadePopupMenu.kt Outdated
@Goooler
Copy link
Copy Markdown
Contributor

Goooler commented Jul 12, 2022

@saket CC

Comment thread cascade/src/main/java/me/saket/cascade/CascadePopupMenu.kt Outdated
Comment thread cascade/src/main/java/me/saket/cascade/CascadePopupMenu.kt Outdated
Comment thread cascade/src/main/java/me/saket/cascade/CascadePopupMenu.kt Outdated
@geftimov
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown

zs1973 commented Nov 21, 2022

why not merge?what are @saket doing

@Goooler
Copy link
Copy Markdown
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.

4 participants