source: trip-planner-front/node_modules/angular-material/modules/js/backdrop/backdrop.min.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1004 bytes
Line 
1/*!
2 * AngularJS Material Design
3 * https://github.com/angular/material
4 * @license MIT
5 * v1.2.2-master-0a06f99
6 */
7!function(e,u){"use strict";u.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(a,d,t,c,p,s,l,m){return{restrict:"E",link:function(n,o,e){t.pin&&t.pin(o,c);var i;function r(){var e=parseInt(i.height,10)+Math.abs(parseInt(i.top,10));o.css("height",e+"px")}l(function(){if("fixed"===(i=p.getComputedStyle(m[0].body)).position){var e=d.debounce(function(){i=p.getComputedStyle(m[0].body),r()},60,null,!1);r(),u.element(p).on("resize",e),n.$on("$destroy",function(){u.element(p).off("resize",e)})}var t=o.parent();t.length&&("BODY"===t[0].nodeName&&o.css("position","fixed"),"static"===p.getComputedStyle(t[0]).position&&s.warn("<md-backdrop> may not work properly in a scrolled, static-positioned parent container."),a.inherit(o,t))})}}}])}(window,window.angular);
Note: See TracBrowser for help on using the repository browser.