update components

This commit is contained in:
Luke Pulverenti 2016-05-03 22:18:05 -04:00
parent c2d70081cf
commit d4301f7089
16 changed files with 863 additions and 173 deletions

View file

@ -10,6 +10,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html">
<link rel="import" href="iron-overlay-backdrop.html">
<script>
@ -224,7 +225,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
* Updates the backdrop z-index.
*/
trackBackdrop: function() {
this.backdropElement.style.zIndex = this.backdropZ();
var overlay = this._overlayWithBackdrop();
// Avoid creating the backdrop if there is no overlay with backdrop.
if (!overlay && !this._backdropElement) {
return;
}
this.backdropElement.style.zIndex = this._getZ(overlay) - 1;
this.backdropElement.opened = !!overlay;
},
/**