Skip to content

Popover is only opening at the bottom (ignoring ConnectionPositionPair) #18382

@sandgupta23

Description

@sandgupta23

Reproduction

https://stackblitz.com/edit/angular-xcflxa?file=src%2Fapp%2Fapp.component.html

Please look into popover.service.ts
-------------------
ConnectionPositionPair is: [
      {
        originX: 'start',
        originY: 'top',
        overlayX: 'start',
        overlayY: 'top',
      },
      {
        originX: 'start',
        originY: 'top',
        overlayX: 'start',
        overlayY: 'top'
      },
    ];

Steps to reproduce:

  1. Open stackblitz
  2. Click on the button

Expected Behavior

There should be a way to open popover at the top of the button

Expection position is shown in below sketch:
popover

Actual Behavior

Popover is only opening at the bottom

What behavior did you actually see?

Environment

"@angular/animations": "^7.1.0",
"@angular/cdk": "^7.1.0",
"@angular/common": "^7.1.0",
"@angular/compiler": "^7.1.0",
"@angular/core": "^7.1.0",
"@angular/forms": "^7.1.0",
"@angular/http": "^7.1.0",
"@angular/material": "^7.1.0",
"@angular/platform-browser": "^7.1.0",
"@angular/platform-browser-dynamic": "^7.1.0",
"@angular/platform-server": "^7.1.0",
"@angular/pwa": "^0.7.5",
"@angular/router": "^7.1.0",
"@angular/service-worker": "^7.1.0",
"@angularclass/hmr": "^2.1.3",

  • Browser(s):
    Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu):
    Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: cdk/overlayneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions