template.js.base.scroll-parent.min.js Maven / Gradle / Ivy
'use strict';(function(b){"function"===typeof define&&define.amd?define(["jquery","./version"],b):b(jQuery)})(function(b){return b.fn.scrollParent=function(a){var c=this.css("position"),d="absolute"===c,e=a?/(auto|scroll|hidden)/:/(auto|scroll)/;a=this.parents().filter(function(){var a=b(this);return d&&"static"===a.css("position")?!1:e.test(a.css("overflow")+a.css("overflow-y")+a.css("overflow-x"))}).eq(0);return"fixed"!==c&&a.length?a:b(this[0].ownerDocument||document)}});
© 2015 - 2024 Weber Informatics LLC | Privacy Policy