Skip to content

fr(Drag-Drop): Setting z-index #18902

Closed
Closed

Description

@piernik

In source code I see that z-index of preview is hard coded: https://github.com/angular/components/blob/master/src/cdk/drag-drop/drag-ref.ts

extendStyles(preview.style, {
      // It's important that we disable the pointer events on the preview, because
      // it can throw off the `document.elementFromPoint` calls in the `CdkDropList`.
      pointerEvents: 'none',
      // We have to reset the margin, because it can throw off positioning relative to the viewport.
      margin: '0',
      position: 'fixed',
      top: '0',
      left: '0',
      zIndex: '1000'
    });

Problem is that I'm using drag-drop feature n bootstrap modal which has z-index 1050 - so I have to change it, but I cannot.

Activity

  1. added
    feature
    needs triage
    on Mar 24, 2020
  2. Totati commented on Mar 24, 2020

    @Totati
    Contributor

    Yeah, we use cdk drag and drop in a bootstrap dialog, and we had to configure the all the variables for z-index in bootstrap to work correctly.

  3. self-assigned this
    on Mar 25, 2020
  4. added
    P3
    and removed
    needs triage
    on Mar 25, 2020
  5. added a commit that references this issue on Mar 25, 2020
    429c13d
  6. added 2 commits that reference this issue on Mar 31, 2020
    4e02a95
    5c88e67
  7. angular-automatic-lock-bot commented on May 1, 2020

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions