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); |
---|