mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user