fix(datepicker): change overlay position strategy so the calendar is kept on-screen (#11607)

* change withPush strategy to true

* address @crisbeto's comment
This commit is contained in:
Juliano
2018-10-02 17:40:09 -03:00
committed by vivian-hu
parent e8a6ea19e0
commit f44d6db73a
+1 -1
View File
@@ -461,7 +461,7 @@ export class MatDatepicker<D> implements OnDestroy, CanColor {
.withTransformOriginOn('.mat-datepicker-content')
.withFlexibleDimensions(false)
.withViewportMargin(8)
.withPush(false)
.withLockedPosition()
.withPositions([
{
originX: 'start',