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

Remove padding of MenuFlyoutItems #1457

Merged
merged 2 commits into from
Oct 22, 2019

Conversation

marcelwgn
Copy link
Collaborator

Description

Removed the internal padding that is used for the MenuItemPresenter so the items are edge to edge with the border of the flyout.

Motivation and Context

Fixes #1445

How Has This Been Tested?

Tested manually using the MUXControlsTestApp

Screenshots (if appropriate):

menuflyout-spacing-removal

@marcelwgn marcelwgn requested a review from a team as a code owner October 17, 2019 13:25
@jevansaks
Copy link
Member

This certainly looks better to me but is it what @chigy had in mind? The complaint was that the spacing was uneven -- it looked like 2 on the left and 1 on the right. Should it be changed to:

  • 1 on both sides
  • 2 on both sides
  • 0 on both sides (as you've done here)

?

@chigy
Copy link
Member

chigy commented Oct 17, 2019

@chingucoding , could you provide additional images to answer @jevansaks ?

  1. Cascading menu opened and sub-menu next to the chevron selected
  2. Same as # 1 but sub-menu that is NOT next to chevron selected
  3. MenuFlyout which doesn't have cascading menu (so there's no chevron)

@marcelwgn
Copy link
Collaborator Author

@chingucoding , could you provide additional images to answer @jevansaks ?

  1. Cascading menu opened and sub-menu next to the chevron selected
  2. Same as Programmatically adding new NavigationViewItems to an existing NavigationView.MenuItems collection results in the added items rendering inside a generated NavigationViewItem node #1 but sub-menu that is NOT next to chevron selected
  3. MenuFlyout which doesn't have cascading menu (so there's no chevron)

Sure!
menuflyout-padding-removal

@chigy
Copy link
Member

chigy commented Oct 17, 2019

@chingucoding , thanks for the gif, but could you please send static images so I can evaluate the balance, etc.?

@marcelwgn
Copy link
Collaborator Author

@chingucoding , thanks for the gif, but could you please send static images so I can evaluate the balance, etc.?

Of course!

  1. Cascading menu opened and sub-menu next to the chevron selected:
    image

  2. Same as Programmatically adding new NavigationViewItems to an existing NavigationView.MenuItems collection results in the added items rendering inside a generated NavigationViewItem node #1 but sub-menu that is NOT next to chevron selected:
    image

  3. MenuFlyout which doesn't have cascading menu (so there's no chevron):
    image

@chigy
Copy link
Member

chigy commented Oct 17, 2019

@chingucoding , thanks!
For # 3, what I was looking for was no cascading like this because I am suspecting the extra pixel come from chevron placement, so I wanted to see one without it.

image

@marcelwgn
Copy link
Collaborator Author

@chingucoding , thanks!
For # 3, what I was looking for was no cascading like this because I am suspecting the extra pixel come from chevron placement, so I wanted to see one without it.

image

Oh I see. Here a screenshot without any cascading:
menuflyout-spacing-removal

@chigy
Copy link
Member

chigy commented Oct 17, 2019

@jevansaks , the change @chingucoding made by removing padding both down to 0 is the expected change. What I was noticing though that the fact there were 2 padding on one side meant that the list was already lopsided. I wanted to make sure they looked OK with the change and it appear it does, but I'm double checking with design.

@chigy
Copy link
Member

chigy commented Oct 17, 2019

@jevansaks and @chingucoding , I have the design sign off of the change from visual perspective.

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@shaheedmalik
Copy link

shaheedmalik commented Oct 17, 2019

@chingucoding , could you provide additional images to answer @jevansaks ?

  1. Cascading menu opened and sub-menu next to the chevron selected
  2. Same as Programmatically adding new NavigationViewItems to an existing NavigationView.MenuItems collection results in the added items rendering inside a generated NavigationViewItem node #1 but sub-menu that is NOT next to chevron selected
  3. MenuFlyout which doesn't have cascading menu (so there's no chevron)

Sure!
menuflyout-padding-removal

It looks like the spacing issue comes back on select of the menu item?

Or does the placement of the mouse click affects the animation?

image

@marcelwgn
Copy link
Collaborator Author

@chingucoding , could you provide additional images to answer @jevansaks ?

  1. Cascading menu opened and sub-menu next to the chevron selected
  2. Same as Programmatically adding new NavigationViewItems to an existing NavigationView.MenuItems collection results in the added items rendering inside a generated NavigationViewItem node #1 but sub-menu that is NOT next to chevron selected
  3. MenuFlyout which doesn't have cascading menu (so there's no chevron)

Sure!
menuflyout-padding-removal

It looks like the spacing issue comes back on select of the menu item?

Or does the placement of the mouse click affects the animation?

image

This is the tilt effect that is used on buttons and other clickable components. Depending where the mouse is when you click, the tilt gets applied "differently".
There is also a proposal to remove this effect. See #242 for more information.

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters merged commit 24e624d into microsoft:master Oct 22, 2019
@jevansaks jevansaks added the release note PR that we want to call out in the next release summary label Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release note PR that we want to call out in the next release summary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: Get rid of uneven left/right spacing on MenuFlyout
6 participants