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.

Menu appears after md-card instead of over it.

See original GitHub issue

Hi, guys!

In my opinion, this menu should appear over the md-card, just below the trigger button, right?

'use strict';

import { Component } from '@angular/core';

@Component({
    selector: 'tbv-test',
    template: `
    <md-toolbar color="primary">
        <button md-icon-button disableRipple [md-menu-trigger-for]="menu">
            <md-icon>more_vert</md-icon>
        </button>
        <md-menu #menu>
            <button md-menu-item> I shouldn't </button>
            <button md-menu-item> be here :'( </button>
        </md-menu>
    </md-toolbar>
    <md-card>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis quibusdam laboriosam minus accusamus, possimus delectus quos, id autem repellendus. Facilis fuga earum accusamus aut totam nisi maxime adipisci, cum saepe.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis quibusdam laboriosam minus accusamus, possimus delectus quos, id autem repellendus. Facilis fuga earum accusamus aut totam nisi maxime adipisci, cum saepe.</p>
    </md-card>
    `,
})
export class TestComponent {
    constructor() {}
}

image

I’m using Angular 2.0.0-rc.5 and material 2.0.0-alpha.7 on both Chrome and Edge.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ivovizcommented, Aug 10, 2016

@andregs Although I haven’t checked your code, I had a very similar issue. In my case I had to manually load core/overlay/overlay.css, otherwise every single element that used overlay was positioned way off, just like in your case. I might just overlooked it, but it should either be mentioned in the docs or make it load automatically somehow. Similar issue to #972 imo.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why MDCard not able to add on_touch_down in KivyMD?
The on_touch_down is an event that you can bind to, it is not a property of the MDCard that you can set. So...
Read more >
Card - KivyMD 1.1.1 documentation
KivyMD provides the following card classes for use: MDCard. MDCardSwipe ... use all parameters and attributes of the BoxLayout class in the MDCard...
Read more >
White Screen "?MENU" With r4 Card - Nintendo DSi - iFixit
All it shows when I open up the r4 game is a white screen with a red SD card with “menu” written in...
Read more >
How to Fix SD Card Not Detected / Showing Up / Recognized ...
How to recover files from corrupted SD card ? https://bit.ly/38wXj20Today's video is going to help you resolve SD card not detected/ showing ......
Read more >
The Wii SD Card Menu: A Walkthrough - News
This new menu allows you to load games directly from the SD Card, instead of having to constantly copy them over to the...
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