PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.3
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.3
6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 All 34 releases
← All changes | assets/libs/select2-dropdownPosition/select2-dropdownPosition.min.js +1 -0 5.7.2 → 6.0.3 View file →
@@ -1,0 +1 @@
1 +!function(o){var t=o.fn.select2.amd.require("select2/defaults");o.extend(t.defaults,{dropdownPosition:"auto"});var e=o.fn.select2.amd.require("select2/dropdown/attachBody");e.prototype._positionDropdown;e.prototype._positionDropdown=function(){var t=o(window),e=this.$dropdown.hasClass("select2-dropdown--above"),s=this.$dropdown.hasClass("select2-dropdown--below"),n=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var i={height:this.$container.outerHeight(!1)};i.top=r.top,i.bottom=r.top+i.height;var d=this.$dropdown.outerHeight(!1),a=t.scrollTop(),l=t.scrollTop()+t.height(),p=a<r.top-d,c=l>r.bottom+d,w={left:r.left,top:i.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var b=h.offset();w.top-=b.top,w.left-=b.left;var f=this.options.get("dropdownPosition");"above"===f||"below"===f?n=f:(e||s||(n="below"),c||!p||e?!p&&c&&e&&(n="below"):n="above"),("above"==n||e&&"below"!==n)&&(w.top=i.top-b.top-d),null!=n&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+n),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+n)),this.$dropdownContainer.css(w)}}(window.jQuery);