Skip to content

Commit

Permalink
fix(overlay): add horizontal fallback positions to the connected over…
Browse files Browse the repository at this point in the history
…lay defaults (#8689)

Adds horizontal fallbacks to the `CdkConnectedOverlay` directive default positions.

Fixes #8318.
  • Loading branch information
crisbeto authored and tinayuangao committed Dec 1, 2017
1 parent 847a60c commit e939ea7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cdk/overlay/overlay-directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ const defaultPositionList = [
new ConnectionPositionPair(
{originX: 'start', originY: 'top'},
{overlayX: 'start', overlayY: 'bottom'}),
new ConnectionPositionPair(
{originX: 'end', originY: 'top'},
{overlayX: 'end', overlayY: 'bottom'}),
new ConnectionPositionPair(
{originX: 'end', originY: 'bottom'},
{overlayX: 'end', overlayY: 'top'}),
];

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

0 comments on commit e939ea7

Please sign in to comment.