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

Adds horizontal fallbacks to the `CdkConnectedOverlay` directive default positions.
  • Loading branch information
crisbeto committed Nov 28, 2017
1 parent 55a9f9a commit 4cb6d87
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 4cb6d87

Please sign in to comment.