Skip to content

Update popover to match MD spec (placement below trigger element) #17427

Closed

Description

@daem0ndev

Bug Report

Ionic version:

[x] 4.x

Current behavior:

Currently the ion-popover and popover controller positions overlays OVER the triggering / target element.
https://media.giphy.com/media/2A1KjUxeiYyn4rAZUk/giphy.gif

Expected behavior:

As per the MD spec, Default placement for a dropdown menu is typically positioned below the element that generates it.
https://puu.sh/CIKPM/21c27b4953.png

Steps to reproduce:

Use popover controller and pass in $event from the (click) event on an element.

Related code:

Other information:

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.8.0 (/Users/daem0n/.nvm/versions/node/v11.6.0/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0
   @angular-devkit/build-angular : 0.11.4
   @angular-devkit/schematics    : 7.2.1
   @angular/cli                  : 7.2.1
   @ionic/angular-toolkit        : 1.2.2

Cordova:

   cordova (Cordova CLI) : 8.1.2 ([email protected])
   Cordova Platforms     : ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.1.4, (and 23 other plugins)

System:

   Android SDK Tools : 26.1.1 (/Users/daem0n/Library/Android/sdk)
   ios-deploy        : 1.9.4
   NodeJS            : v11.6.0 (/Users/daem0n/.nvm/versions/node/v11.6.0/bin/node)
   npm               : 6.7.0
   OS                : macOS High Sierra
   Xcode             : Xcode 10.1 Build version 10B61

Activity

  1. brandyscarney commented on Mar 26, 2019

    @brandyscarney
    Member

    It looks like this was fixed by your PR: #17429

    Thanks for the issue and PR!

  2. ionitron-bot commented on Apr 25, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  3. locked and limited conversation to collaborators on Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions