template.js.base.position.min.js Maven / Gradle / Ivy
'use strict';(function(d){"function"===typeof define&&define.amd?define(["jquery","./version"],d):d(jQuery)})(function(d){(function(){function C(b,a,c){return[parseFloat(b[0])*(u.test(b[0])?a/100:1),parseFloat(b[1])*(u.test(b[1])?c/100:1)]}function D(b){var a=b[0];return 9===a.nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:d.isWindow(a)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:a.preventDefault?{width:0,height:0,offset:{top:a.pageY,left:a.pageX}}:
{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()}}var q,y=Math.max,n=Math.abs,v=/left|center|right/,w=/top|center|bottom/,z=/[\+\-]\d+(\.[\d]+)?%?/,A=/^\w+/,u=/%$/,E=d.fn.position;d.position={scrollbarWidth:function(){if(void 0!==q)return q;var b,a,c=d("\x3cdiv style\x3d'display:block;position:absolute;width:50px;height:50px;overflow:hidden;'\x3e\x3cdiv style\x3d'height:100px;width:auto;'\x3e\x3c/div\x3e\x3c/div\x3e");a=c.children()[0];d("body").append(c);b=a.offsetWidth;c.css("overflow",
"scroll");a=a.offsetWidth;b===a&&(a=c[0].clientWidth);c.remove();return q=b-a},getScrollInfo:function(b){var a=b.isWindow||b.isDocument?"":b.element.css("overflow-x"),c=b.isWindow||b.isDocument?"":b.element.css("overflow-y"),a="scroll"===a||"auto"===a&&b.width
e?"left":0l?"top":0y(n(f),n(l))?h.important="horizontal":h.important="vertical";b.using.call(this,a,h)});r.offset(d.extend(k,{using:u}))})};d.ui.position={fit:{left:function(b,a){var c=a.within,g=c.isWindow?c.scrollLeft:c.offset.left,d=c.width,f=b.left-a.collisionPosition.marginLeft,c=g-f,e=f+a.collisionWidth-d-g;a.collisionWidth>d?0=e?(g=b.left+c+a.collisionWidth-
d-g,b.left+=c-g):b.left=0=c?g:c>e?g+d-a.collisionWidth:g:b.left=0d?0=e?(g=b.top+c+a.collisionHeight-d-g,b.top+=c-g):b.top=0=c?g:c>e?g+d-a.collisionHeight:g:b.top=0c){if(d=b.left+e+l+h+a.collisionWidth-m-d,0>d||dc){if(d=b.top+e+l+h+a.collisionHeight-m-d,0>d||d
© 2015 - 2024 Weber Informatics LLC | Privacy Policy