Gets a position strategy that will open the calendar as a dropdown.
()
| 809 | |
| 810 | /** Gets a position strategy that will open the calendar as a dropdown. */ |
| 811 | private _getDropdownStrategy() { |
| 812 | const strategy = createFlexibleConnectedPositionStrategy( |
| 813 | this._injector, |
| 814 | this.datepickerInput.getConnectedOverlayOrigin(), |
| 815 | ) |
| 816 | .withTransformOriginOn('.mat-datepicker-content') |
| 817 | .withFlexibleDimensions(false) |
| 818 | .withViewportMargin(8) |
| 819 | .withLockedPosition(); |
| 820 | |
| 821 | return this._setConnectedPositions(strategy); |
| 822 | } |
| 823 | |
| 824 | /** Sets the positions of the datepicker in dropdown mode based on the current configuration. */ |
| 825 | private _setConnectedPositions(strategy: FlexibleConnectedPositionStrategy) { |
nothing calls this directly
no test coverage detected