Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

paper-dialog inside paper-drawer - dialog hidden behind backdrop #78

Closed
bwh-rl opened this issue Mar 11, 2016 · 2 comments
Closed

paper-dialog inside paper-drawer - dialog hidden behind backdrop #78

bwh-rl opened this issue Mar 11, 2016 · 2 comments

Comments

@bwh-rl
Copy link

bwh-rl commented Mar 11, 2016

http://jsbin.com/zenicodoho/1/edit?html,output

If the paper-dialog is outside of the paper-drawer-panel it works.
But if the content is separated in some kind of content elements the paper-dialog should be included in them.

e.g.

<paper-drawer-panel>
  <iron-pages drawer>
    <drawer-element-a></drawer-element-a>
    ....
  </iron-pages>
  ....
<paper-drawer-panel>

<dom-module id="drawer-element-a">
  <template>
    ....
    <paper-dialog>
     ....
    </paper-dialog>
  </template>
<dom-module>
@valdrinkoshi
Copy link
Member

Hi @bwh-rl, please see this discussion for more details, but in short this is a known problem of when you insert an overlay within an element that creates a new stacking context. The platform doesn't provide ways for overlays to pop out of a stacking context, so it's up to the Polymer user to handle it (e.g. add overlays to body).

Try it yourself:
http://jsbin.com/lemufe/4/edit?html,output

Closing this as duplicate.

@pankratz76
Copy link

still an issue to me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants