question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Menus open from edge not working

See original GitHub issue

Bugs

Follow the template below to ensure the quickest and most accurate response to your issue.

What MDC-Web Version are you using?

v0.11.1

What browser(s) is this bug affecting?

N/A

What OS are you using?

N/A

What are the steps to reproduce the bug?

Documentation states that there are convenience classes to use for changing opening point of menus:

The menu will open from the top left by default (top right in RTL). Depending on how you’ve positioned your button, you may want to change the point it opens from. To override the opening point, you can style transform-origin directly, or use one of the following convenience classes:

Adding any of this classes to menu component does not change anything, ie:

<div class="mdc-simple-menu mdc-simple-menu--open-from-top-right">

Searching source code shows this classes are not used anywhere.

What is the expected behavior?

Opening menu from edge specified with class.

What is the actual behavior?

Always opening menu from top-left (or different edge when there is no space)

Please describe what the component/code is actually doing that’s different from what it should be doing.

Any other information you believe would be useful?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
aeczcommented, Sep 21, 2017

@Garbee Thanks for explaining. Convenient classes are indeed for animations only. (Maybe we could rename them mdc-simple-menu–animate-from-top-right).

My question is then, how do we position the menu to top right ?

I have made another codepen copying the official demo. It adds the convenient classes depending on the button position AND fix the menu position.

Without position workaround: image

With position workaround: image

Any chance that this could be the default behavior or make it easier to position the menu correctly?

1reaction
aeczcommented, Sep 21, 2017

I have this issue too. I forked the codepen above and added this workaround:

.mdc-simple-menu--open-from-top-right {
  left: auto !important;
  right: 0;
  transform-origin: right !important;
}

https://codepen.io/aecz/pen/MEejQV

Demo below is working but only because the anchor is close to the right border. https://material-components-web.appspot.com/simple-menu.html Also, the demo does not seem to use the convenient classes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MS Edge Settings Menu Not Working - Microsoft Community
Hi - I am on build Version 84.0.522.40 (Official build) (64-bit) - from this morning when I try to open the Setting Menu...
Read more >
Common Microsoft Edge Problems, and How to Fix Them
Try clearing out Edge data by clicking on “…” and choosing Settings. After that, select Privacy, search, and services from the side menu,...
Read more >
Dropdown menu on Edge doesn't work - WordPress.org
Using Edge, you can't click on those and see the dropdown menu at all. It does nothing. HUGE PROBLEM. How can this be...
Read more >
Microsoft Edge - Missing menus and display issues - JavaScript
When doing testing with Microsoft Edge, we have noticed the following: Header links (user profile, user settings, etc.) do not appear (no images ......
Read more >
Fix Transparent Menus or Broken Dialogs issue in Microsoft ...
Open Edge. · Click on the ellipsis (three dots) on the top right corner of your browser. · Select Settings from the menu....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found