We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a9db24 + 9207f23 commit 8460e83Copy full SHA for 8460e83
1 file changed
select2.js
@@ -1244,7 +1244,7 @@ the specific language governing permissions and limitations under the Apache Lic
1244
return dropLeft + dropWidth <= viewPortRight;
1245
},
1246
enoughRoomOnLeft = function() {
1247
- return offset.left + viewPortLeft + container.outerWidth(false) > dropWidth;
+ return offset.left + viewPortRight + container.outerWidth(false) > dropWidth;
1248
1249
aboveNow = $dropdown.hasClass("select2-drop-above"),
1250
bodyOffset,
@@ -3237,7 +3237,7 @@ the specific language governing permissions and limitations under the Apache Lic
3237
if (equal(this.opts.id(current[i]), this.opts.id(old[j]))) {
3238
current.splice(i, 1);
3239
if(i>0){
3240
- i--;
+ i--;
3241
}
3242
old.splice(j, 1);
3243
j--;
0 commit comments