This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
md-dialog height calculated wrong if page is scrolled #4115
Closed
Description
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.
Example here: http://codepen.io/anon/pen/YXgbee