cosmoz-dialog is a Polymer component workaround for paper-dialog that fit the
backdrop to the element specified by the fitInto
property.
Example:
<cosmoz-dialog with-backdrop id="dialogInRootStackingContext">
<template>
<h2>Dialog Title</h2>
<p>
This dialog is created in the root stacking context.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum dolore
eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
officia deserunt mollit anim id est laborum.
</p>
<div class="buttons">
<paper-button dialog-dismiss>Cancel</paper-button>
<paper-button dialog-confirm>Accept</paper-button>
</div>
</template>
</cosmoz-dialog>
bower install --save Neovici/cosmoz-dialog
<link rel="import" href="bower_components/cosmoz-dialog/cosmoz-dialog.html" />