MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

Submenus (MenuItem) are not properly aligned

Open ElieTaillard opened this issue 5 years ago • 3 comments

Hello, As you can see on my screenshot, submenus (MenuItem) are not properly aligned. I don’t know if it’s intentional, but I think it's an issue.

image

ElieTaillard avatar Dec 10 '20 16:12 ElieTaillard

Agreed this is a bug. Based on the spec for Cascading menu child list items should have the first item lined up with the parent item.

Keboo avatar Dec 10 '20 17:12 Keboo

@jizc @Keboo

Ok now the alignement is good when menus open downward

image

But we have to take charge of the fact that menus can open upward

image

Putting a negative vertical offset correct the alignement when menus open downward but not upward Maybe we should check if the menu opens upward or downward before applying offset

ElieTaillard avatar Mar 04 '21 08:03 ElieTaillard

Ah, I didn't think of this. It makes it a lot more complicated. My best guess is that it might be possible to do with a CustomPopupPlacementCallback Delegate.

jizc avatar Mar 04 '21 16:03 jizc