{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/2271","labels_url":"https://api.github.com/repos/angular/material/issues/2271/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/2271/comments","events_url":"https://api.github.com/repos/angular/material/issues/2271/events","html_url":"https://github.com/angular/material/issues/2271","id":67831381,"number":2271,"title":"Open dialog relativeTo","user":{"login":"luano","id":6610859,"avatar_url":"https://avatars.githubusercontent.com/u/6610859?v=3","gravatar_id":"","url":"https://api.github.com/users/luano","html_url":"https://github.com/luano","followers_url":"https://api.github.com/users/luano/followers","following_url":"https://api.github.com/users/luano/following{/other_user}","gists_url":"https://api.github.com/users/luano/gists{/gist_id}","starred_url":"https://api.github.com/users/luano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luano/subscriptions","organizations_url":"https://api.github.com/users/luano/orgs","repos_url":"https://api.github.com/users/luano/repos","events_url":"https://api.github.com/users/luano/events{/privacy}","received_events_url":"https://api.github.com/users/luano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-11T20:47:11Z","updated_at":"2015-04-13T15:11:49Z","closed_at":null,"body":"I would like to open a dialog at a position relative to a another component.\r\n\r\nOn a smaller device it is ok to center dialogs and the animation is nice, but in some scenarios and in particular on larger screens centering is not always a great option and can lose the context of the interaction a bit. Therefore I would like to open the dialog relative to another componet e.g. rightOf/leftOf etc."},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/92395088","html_url":"https://github.com/angular/material/issues/2271#issuecomment-92395088","issue_url":"https://api.github.com/repos/angular/material/issues/2271","id":92395088,"user":{"login":"epelc","id":5204642,"avatar_url":"https://avatars.githubusercontent.com/u/5204642?v=3","gravatar_id":"","url":"https://api.github.com/users/epelc","html_url":"https://github.com/epelc","followers_url":"https://api.github.com/users/epelc/followers","following_url":"https://api.github.com/users/epelc/following{/other_user}","gists_url":"https://api.github.com/users/epelc/gists{/gist_id}","starred_url":"https://api.github.com/users/epelc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epelc/subscriptions","organizations_url":"https://api.github.com/users/epelc/orgs","repos_url":"https://api.github.com/users/epelc/repos","events_url":"https://api.github.com/users/epelc/events{/privacy}","received_events_url":"https://api.github.com/users/epelc/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T15:11:49Z","updated_at":"2015-04-13T15:11:49Z","body":"@luano you can use the `parent` option of `$mdDialog.show(mdDialogOptions)`\r\n\r\nSee the full docs [here](https://material.angularjs.org/#/api/material.components.dialog/service/$mdDialog). The options are near the end of the page."}}