ux-datagrid-scrollBar.min.js

! ux-angularjs-datagrid v.1.4.11 (c) 2016, Obogo https://github.com/obogo/ux-angularjs-datagrid License: MIT.

(function (exports, global) {
if (typeof define === "function" && define.amd) {
  define(exports);
} else if (typeof module !== "undefined" && module.exports) {
  module.exports = exports;
} else {
  global.ux = exports;
}


!function(a,b){"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&module.exports?module.exports=a:b.ux=a,angular.module("ux").factory("scrollBar",function(){return["inst",function(b){function c(){var a=b.getViewportHeight(),c=b.getContentHeight(),d=b.values.scroll/c;c>a?(j.percentHeight=a/c,j.display="block",j.height=a*j.percentHeight,j.height=j.height<10?10:j.height,j.top=b.element[0].offsetTop+a*d):j.display="none"}function d(){c(),i.style.height=j.height+"px",i.style.top=j.top+"px",i.style.display=j.display}function e(a,b){i.classList.add("scrolling"),d()}function f(a,b){d()}function g(a,b){d(),i.classList.remove("scrolling")}var h=a.logWrapper("scrollBar",{},"red",b),i=document.createElement("div"),j={},k=b.element[0].parentNode,l=b.element[0].nextSibling;i.style.display="none",i.className="datagrid-scrollbar",l?k.insertBefore(i,l):k.appendChild(i),a.css.getSelector(".datagrid-scrollbar")||(a.css.createClass("datagrid-scrollbar",".datagrid-scrollbar","box-sizing: border-box; position: absolute; top:0px; right:0px; width:6px; background-color: rgba(0, 0, 0, 0.498039); border: 1px solid rgba(255, 255, 255, 0.901961); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; display: block; height: 476px; background-position: initial initial; background-repeat: initial initial;"),a.css.createClass("datagrid-scrollbar",".scrolling","opacity:1;")),b.unwatchers.push(b.scope.$on(a.datagrid.events.ON_SCROLL_START,e)),b.unwatchers.push(b.scope.$on(a.datagrid.events.ON_SCROLL,f)),b.unwatchers.push(b.scope.$on(a.datagrid.events.ON_SCROLL_STOP,g)),b.unwatchers.push(b.scope.$on(a.datagrid.events.ON_AFTER_RENDER,d)),h.destroy=function(){i.remove(),i=null,j=null,b=null,h=null},b.scrollBar=h}]})}(this.ux=this.ux||{},function(){return this}());

sourceMappingURL=ux-datagrid-scrollBar.min.js.map

}(this.ux = this.ux || {}, function() {return this;}()));