datepicker repositions based on body size, not visible viewport (w/ scrolling)
Whenever I use the md-datepicker and if it is near the page margins it doesn't open properly. By not opening properly I mean it is not scrollable and it should by itself know where it needs to show the popup based on its space requirement. Just like the image showing it should have open on top and not keep opening in space where the user has no option to select the date
@maddy2308 Can you check whether this is happening with the latest fixes in place? You can use:
https://cdn.rawgit.com/angular/code.material.angularjs.org/master/HEAD/angular-material.js https://cdn.rawgit.com/angular/code.material.angularjs.org/master/HEAD/angular-material.css
I just check it with the links that you provided above and it is still persistent. The datepicker continuously open and if it open near the end of page it just doesn't show the date picker element properly. Please find the screenshot attached.

Thinking more about it, pretty sure I know what the problem is.
@jelbourn Also if it's near the edge(left/right) it get's clipped
You can see this on the docs if your window is narrowish
https://material.angularjs.org/latest/#/demo/material.components.input

Edit - never mind this is fixed in the latest master
@jelbourn Tried the latest master, the fix works for me too. Thanks for fixing the issue. There's one small catch on the styling though - the calendar isn't truly center aligned for small screen, even the container for md-datepicker has layout-align="center" set. Please see below screenshot for reference.

Any chance this can be fixed along?
Edit
Trying to debug this. But strangely with inspector/firebug turned on, the issue seems to be gone (y-overflow is visible though, maybe the margin is covered up?)

Edit 2
One more thing to clarify - is md-datepicker designed to be responsive? Below is a comparison between Firefox and Chrome:

@CLGitDev how did you produce that Chrome problem?
@jelbourn Thanks for reverting. I tried again with the latest stable channel release of Chrome, the md-datepicker is now responsive. Looks like it's an issue specific to an older browser version.
I'm still seeing a margin on the right when the date picker is opened though.
I was seeing this, now I get a bizzare spacing between all of the elements:

*UPDATE: Seems I only get this issue on chrome.
@pattyjogal It looks like your app might have some CSS that's affecting the calendar. Without a demo or some code it's impossible to tell.
Closing this now since the main problem (calendar being off-screen) should be resolved.
similar issue still exists in Firefox when having multiple datepickers
jsfiddle: http://jsfiddle.net/ps25aotj/
clicking the first pickers: everything ok scrolling down -> clicking on one of the pickers: above behavior appears
The issue still seems to happen if the date picker is inside of a dialog. I tested with 1.0rc1, and this was the result:

http://codepen.io/anon/pen/bVMwmy/
We can Fix this issue by using MomentDateAdapter
- "@angular/material-moment-adapter": "6.3.2", in package.json
export const dateFormat = 'YYYY-MM-DD';
export const MOMENT_DATE_FORMATS: MatDateFormats = { parse: { dateInput: dateFormat }, display: { dateInput: dateFormat, monthYearLabel: 'MMMM Y', dateA11yLabel: 'LL', monthYearA11yLabel: 'MMMM Y' } };
@Component({ providers: [ {provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]}, {provide: MAT_DATE_FORMATS, useValue: MOMENT_DATE_FORMATS }, ] })