Skip to content

Commit f44d6db

Browse files
julianobrasilvivian-hu-zz
authored andcommitted
fix(datepicker): change overlay position strategy so the calendar is kept on-screen (#11607)
* change withPush strategy to true * address @crisbeto's comment
1 parent e8a6ea1 commit f44d6db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/datepicker/datepicker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ export class MatDatepicker<D> implements OnDestroy, CanColor {
461461
.withTransformOriginOn('.mat-datepicker-content')
462462
.withFlexibleDimensions(false)
463463
.withViewportMargin(8)
464-
.withPush(false)
464+
.withLockedPosition()
465465
.withPositions([
466466
{
467467
originX: 'start',

0 commit comments

Comments
 (0)