-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
@@ -0,0 +1,111 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for the naming convention of _menu
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ensure that it gets concatenated first by the build, important because it defines the module
71bad11
to
bb82212
Compare
* additional options within the context of an action. | ||
* | ||
* Every `md-menu` must specify exactly two child elements. The first element is what is | ||
* left in the DOM and is used to open the menu. This element is called the origin element. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use the term trigger
over origin
alignTarget = alignTarget.querySelector('[md-menu-align-target]') || alignTarget; | ||
alignTargetRect = alignTarget.getBoundingClientRect(); | ||
|
||
var containerNodeStyle = $window.getComputedStyle(containerNode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getComputedStyle
is pretty expensive; how frequently does this get called?
No description provided.