iced_aw icon indicating copy to clipboard operation
iced_aw copied to clipboard

Picklist doesn't show options when embedded in a menu

Open barskern opened this issue 1 year ago • 8 comments

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.

barskern avatar Jul 03 '24 17:07 barskern

@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?

genusistimelord avatar Jul 03 '24 18:07 genusistimelord

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

latidoremi avatar Jul 05 '24 12:07 latidoremi

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

genusistimelord avatar Jul 05 '24 13:07 genusistimelord

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

genusistimelord avatar Jul 24 '24 14:07 genusistimelord

@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 avatar Jul 24 '24 15:07 barskern

@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 avatar Aug 02 '24 14:08 barskern

@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

barskern avatar Aug 12 '24 16:08 barskern

I am unsure how to fix this issue atm.

genusistimelord avatar Aug 12 '24 17:08 genusistimelord