Skip to content

Commit e939ea7

Browse files
crisbetotinayuangao
authored andcommitted
fix(overlay): add horizontal fallback positions to the connected overlay defaults (#8689)
Adds horizontal fallbacks to the `CdkConnectedOverlay` directive default positions. Fixes #8318.
1 parent 847a60c commit e939ea7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cdk/overlay/overlay-directives.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ const defaultPositionList = [
4646
new ConnectionPositionPair(
4747
{originX: 'start', originY: 'top'},
4848
{overlayX: 'start', overlayY: 'bottom'}),
49+
new ConnectionPositionPair(
50+
{originX: 'end', originY: 'top'},
51+
{overlayX: 'end', overlayY: 'bottom'}),
52+
new ConnectionPositionPair(
53+
{originX: 'end', originY: 'bottom'},
54+
{overlayX: 'end', overlayY: 'top'}),
4955
];
5056

5157
/** Injection token that determines the scroll handling while the connected overlay is open. */

0 commit comments

Comments
 (0)