We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6278e7c commit dea7979Copy full SHA for dea7979
1 file changed
select2.js
@@ -1129,12 +1129,13 @@ the specific language governing permissions and limitations under the Apache Lic
1129
1130
// attach listeners to events that can change the position of the container and thus require
1131
// the position of the dropdown to be updated as well so it does not come unglued from the container
1132
+ var that = this;
1133
this.container.parents().add(window).each(function () {
1134
$(this).bind(resize+" "+scroll+" "+orient, function (e) {
1135
$("#select2-drop-mask").css({
1136
width:document.documentElement.scrollWidth,
1137
height:document.documentElement.scrollHeight});
- $("#select2-drop").data("select2").positionDropdown();
1138
+ that.positionDropdown();
1139
});
1140
1141
0 commit comments