-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathgridlayout-ie.min.js
1 lines (1 loc) · 1.14 KB
/
gridlayout-ie.min.js
1
!function(){"use strict";var a,b=function(){return"TextRectangle"in window?function(){var a=this.getBoundingClientRect(),b={};return b.width=a.right-a.left,b.height=a.bottom-a.top,b}:window.Element.prototype.getBoundingClientRect}(),c=function(){return"addEventListener"in window.Element.prototype?function(a,b){this.addEventListener(a,b,!1)}:function(a,b){this.attachEvent("on"+a,b)}}(),d=function(){var a,c,d,e,f=document.querySelectorAll(".gl-cell > .gl-vertical,.gl-cell > .gl-fill,.gl-cell > .gl-scrollview,.gl-cell > .gl-scrollview > .gl-scrollview-content");for(a=0;a<f.length;a++){d=b.call(f[a]),c=f[a].parentNode,e=b.call(c);var g;g=c.currentStyle?c.currentStyle.display:window.getComputedStyle(c).display,d.height!==e.height&&(f[a].style.height=e.height+"px","table-row"===g&&(c.style.height=e.height+"px"))}},e=function(b){a&&clearTimeout(a),a=setTimeout(d,300)},f=!1,g=function(a){!1!==f||"interactive"!==document.readyState&&"complete"!==document.readyState||(f=!0,e(),c.call(window,"resize",e),"MutationEvent"in window?c.call(document.body,"DOMSubtreeModified",e):c.call(document.body,"propertychange",e))};g(),c.call(document,"readystatechange",g)}();