md-datepicker inside mdDialog displays way over the input location

If I open the dialog and open the datepicker, everything works fine.

If I scroll down, the datepicker starts to move away

Normally scrolling shouldn't be possible due an opened dialog.
Perhaps you can provide a codepen too?
I dont mean scrolling the dialog nor the content if the custom dialog is open
Ill provide a codepen whenever I have a chance. Busy day. :cry:
+1 i have the same bug :(
It would be great, if someone, with the same problems, provide a codepen :+1:
It would be great, if someone, with the same problems, provide a codepen
Sorry it took so long...
Perhaps you can provide a codepen too?
Everything is fine

If you open it

The datepicker is displaced...
I insert another button in the text and open the dialog at a lower view position

The datepicker is further displaced

The whole problem, and this is my guess, is that the whiteframe of the datepicker goes inside the body, not the dialog mask, so the property "top" counts from the top of the body
Dupe of #5501