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

Picklist doesn't show options when embedded in a menu #255

Open
barskern opened this issue Jul 3, 2024 · 8 comments
Open

Picklist doesn't show options when embedded in a menu #255

barskern opened this issue Jul 3, 2024 · 8 comments

Comments

@barskern
Copy link
Contributor

barskern commented Jul 3, 2024

Similar to #212 , the PickList doesn't show it's options when embedded in a MenuBar. That is, it only shows the selection box and not the other selectable options when selected. This occurs on version 0.9.2.

@genusistimelord
Copy link
Collaborator

@latidoremi can you add

fn overlay<'c>(
        &'c mut self,
        layout: Layout<'_>,
        renderer: &Renderer,
    ) 

and

 fn operate(
        &mut self,
        layout: Layout<'_>,
        renderer: &Renderer,
        operation: &mut dyn Operation<Message>,
    )

to the overview of menu?

@latidoremi
Copy link
Contributor

Sorry I am really swamped at this point, I don't know when I will be able to make time, for anyone wants to fix this feel free to ask me if you find the code confusing

@genusistimelord
Copy link
Collaborator

Ok if i get some time ill try to look into it then.

@genusistimelord
Copy link
Collaborator

@barskern can you please give the main branch a try to see if this issue is now resolved?

@barskern
Copy link
Contributor Author

@barskern can you please give the main branch a try to see if this issue is now resolved?

Ah thats amazing that you already worked on it, thank you so much! I will try it out as soon as I can. Probably within a week or two.

@barskern
Copy link
Contributor Author

barskern commented Aug 2, 2024

@genusistimelord After updating the dependencies to the master branch for both iced and this crate, I realized that there are quite a few breaking changes to iced across the versions. Hence I was unable to try this out in my project. I want to stick to a stable version of iced, so I'll wait for 0.13 to try it out I suppose. Unless you have another suggestion?

@barskern
Copy link
Contributor Author

@genusistimelord I decided to upgrade to the master branch for iced as it seems close to the release of 0.13 hence I was able to test this.

I can say that it successfully shows the drop down! However when selecting an item from the drop down, you can only select items that "overlay" with the menu below. It seems as though the menu will only be shown while the mouse is directly hovering over it. In the screenshot below, as soon as my mouse crosses the red boundary (edge of the menu), the menu and pick list closes.

bilde

@genusistimelord
Copy link
Collaborator

I am unsure how to fix this issue atm.

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

3 participants