META-INF.resources.butterfaces-dist-js.butterfaces-tooltip.min.js Maven / Gradle / Ivy
var ButterFaces;!function(o){var t=(e.prototype.calculateTooltipPosition=function(o,t){var e=$(window).height()-$(t).offset().top-$(t).outerHeight(),i=$(window).width()-$(t).offset().left-$(t).outerWidth();return console.log("ButterFaces.Tooltip.calculateTooltipPosition - offsetBottom is "+e),console.log("ButterFaces.Tooltip.calculateTooltipPosition - offsetRight is "+i),e position is top or left"),$(t).offset().left position is top"),"top"):(console.log("ButterFaces.Tooltip.calculateTooltipPosition - left offset is NOT smaller than popoverMaxWidthByBootstrap ("+this.popoverMaxWidthByBootstrap+") -> position is left"),"left")):(console.log("ButterFaces.Tooltip.calculateTooltipPosition - offsetRight ("+i+") is greater than popoverMaxWidthByBootstrap ("+this.popoverMaxWidthByBootstrap+") -> position is right"),"right"):(console.log("ButterFaces.Tooltip.calculateTooltipPosition - offsetBottom ("+e+") is greater than popoverMaxHeightByButterFaces ("+this.popoverMaxHeightByButterFaces+") -> position is bottom"),"bottom")},e);function e(o,t){void 0===o&&(o=276),void 0===t&&(t=110),this.popoverMaxWidthByBootstrap=o,this.popoverMaxHeightByButterFaces=t,console.log("ButterFaces.Tooltip.constructor - popoverMaxWidthByBootstrap is "+this.popoverMaxHeightByButterFaces+", popoverMaxHeightByButterFaces is "+this.popoverMaxWidthByBootstrap)}o.Tooltip=t}(ButterFaces=ButterFaces||{});
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRlcmZhY2VzLXRvb2x0aXAudHMiXSwibmFtZXMiOlsiQnV0dGVyRmFjZXMiLCJUb29sdGlwIiwicHJvdG90eXBlIiwiY2FsY3VsYXRlVG9vbHRpcFBvc2l0aW9uIiwicG9wb3ZlciIsInNvdXJjZSIsIm9mZnNldEJvdHRvbSIsIiQiLCJ3aW5kb3ciLCJoZWlnaHQiLCJvZmZzZXQiLCJ0b3AiLCJvdXRlckhlaWdodCIsIm9mZnN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