Skip to content

md-menu: renders off page #2852

@JT-Bruch

Description

@JT-Bruch

Bug, feature request, or proposal:

Issue with md-menu & y-position="above" and the menu rendering off page. Additionally all unit tests fail due to #1913

What is the expected behavior?

The menu should populate above the clicked point.

What is the current behavior?

The menu is currently showing beneath the clicked point, and rendering off page.

What are the steps to reproduce?

  1. Clone https://github.com/ExcelerationDesigns/ng-cli-starter
  2. Run npm install
  3. Run 'ng serve' and navigate to localhost:4200
  4. Shrink the window so the top navigation disappears, and the bottom navigation appears.
  5. Click on the middle 'home' button.
  6. Observe the menu off page.

image

  1. Running ng test will also demonstrate all unit tests failing. The solution in [md-menu][bug] Tests crash in MdMenu.ngOnDestroy #1913 is confirmed as working.

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd

What is the use-case or motivation for changing an existing behavior?

Make it so the user can actually click the menu. :)

Which versions of Angular, Material, OS, browsers are affected?

                             _                           _  _
  __ _  _ __    __ _  _   _ | |  __ _  _ __         ___ | |(_)
 / _` || '_ \  / _` || | | || | / _` || '__|_____  / __|| || |
| (_| || | | || (_| || |_| || || (_| || |  |_____|| (__ | || |
 \__,_||_| |_| \__, | \__,_||_| \__,_||_|          \___||_||_|
               |___/
angular-cli: 1.0.0-beta.26
node: 6.9.1
os: win32 x64
@angular/common: 2.4.5
@angular/compiler: 2.4.5
@angular/core: 2.4.5
@angular/flex-layout: 2.0.0-beta.4
@angular/forms: 2.4.5
@angular/http: 2.4.5
@angular/material: 2.0.0-beta.1
@angular/platform-browser: 2.4.5
@angular/platform-browser-dynamic: 2.4.5
@angular/router: 3.4.5
@angular/compiler-cli: 2.4.5

Is there anything else we should know?

Don't think so!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions