{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/material/issues/4115","labels_url":"https://api.github.com/repos/angular/material/issues/4115/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/4115/comments","events_url":"https://api.github.com/repos/angular/material/issues/4115/events","html_url":"https://github.com/angular/material/issues/4115","id":100436937,"number":4115,"title":"md-dialog height calculated wrong if page is scrolled","user":{"login":"Lander","id":390372,"avatar_url":"https://avatars.githubusercontent.com/u/390372?v=3","gravatar_id":"","url":"https://api.github.com/users/Lander","html_url":"https://github.com/Lander","followers_url":"https://api.github.com/users/Lander/followers","following_url":"https://api.github.com/users/Lander/following{/other_user}","gists_url":"https://api.github.com/users/Lander/gists{/gist_id}","starred_url":"https://api.github.com/users/Lander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lander/subscriptions","organizations_url":"https://api.github.com/users/Lander/orgs","repos_url":"https://api.github.com/users/Lander/repos","events_url":"https://api.github.com/users/Lander/events{/privacy}","received_events_url":"https://api.github.com/users/Lander/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-11T23:53:31Z","updated_at":"2015-08-11T23:53:31Z","closed_at":null,"body":"For some reason dialog's max-height depends on md-backdrop height, which is calculated based on parent (in my case body) height. If you open dialog from a not scrolled page, it will scale fine, but if you scroll the page, the dialog will still try to take 80% of md-backdrop. The way md-backdrop height calculated right now is the following: if parent has position fixed, then we are taking body height and adding body top to account the scrolled part. That leads to wrong measure of body height and wrong dialog scale.\r\n\r\nExample here: http://codepen.io/anon/pen/YXgbee\r\n"}}