Skip to content
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
@Lander

Description

@Lander

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

Metadata

Metadata

Assignees

Labels

g3: reportedThe issue was reported by an internal or external product team.needs: investigationThe cause of this issue is not well understood and needs to be investigated by the team or community

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions