Giter VIP home page Giter VIP logo

Comments (4)

valdrinkoshi avatar valdrinkoshi commented on July 19, 2024

Hi @WTober,
This is caused by the way stacking contexts work, and is a known limitation of iron-overlay-behavior.
It affects all overlays, e.g. see this other issue reported on paper-dialog, in particular this comment provides more details about the cause. To work around this issue, the user is required to place overlays in a stacking-context safe node (e.g. document.body).

from paper-toast.

WTober avatar WTober commented on July 19, 2024

To work around this issue, the user is required to place overlays in a stacking-context safe node (e.g. document.body).

Ok, at the moment I have no idea how I place overlays in a stacking-context safe node, but I try to find out.

from paper-toast.

valdrinkoshi avatar valdrinkoshi commented on July 19, 2024

Hope this helps:

<body>
  <!-- this toast is in the stacking context of body -->
  <paper-toast></paper-toast>

  <!-- this div creates its own stacking context --> 
  <div style="transform: translateZ(0)">
    <!-- this toast is in the stacking context of the div it is contained -->
    <paper-toast></paper-toast>
  </div>
</body>

from paper-toast.

valdrinkoshi avatar valdrinkoshi commented on July 19, 2024

Closing this, as it seems like a mis-use of paper-toast, will re-open if I'm mistaken :)
@WTober from the video you shared I cannot see the error reproduced, also the 2nd link is a 404 not found. If the problem persists, could you share a jsbin? here an example http://jsbin.com/xequvap/1/edit?html,output

from paper-toast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.