iced-rs / iced_aw

Additional widgets for the Iced GUI library
MIT License
467 stars 110 forks source link

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

Open barskern opened 4 months ago

barskern commented 4 months ago

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 commented 4 months ago

@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 commented 4 months ago

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 commented 4 months ago

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

genusistimelord commented 3 months ago

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

barskern commented 3 months ago

@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 commented 3 months ago

@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 commented 3 months ago

@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 commented 3 months ago

I am unsure how to fix this issue atm.