Skip to content

Specific position for MdMenu #2584

@NCC1701M

Description

@NCC1701M

Bug, feature request, or proposal:

Feature

What is the expected behavior?

It might be useful to set explicitly the position of the MdMenu by using real x and y coordinates.

What is the current behavior?

When you open the menu programmatically via the ViewChild you can only set for position "above" and "below" respectively "before" and "after"

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

I have a svg with several paths. When I click on one of these paths I'd like to show a Menu with actions. I have to call it programmatically. I assigned the mdMenuTriggerFor on a hidden input field. But now the menu will always be displayed on the top left corner.

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

Material: 2.0.0-beta.1
OS: Microsoft Windows [Version 6.1.7601]
Browser: Chrome Version 55.0.2883.87 m

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/menufeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions