Skip to content

Commit 2b90de5

Browse files
committed
Merge pull request select2#2679 from r0mille/master
fixes cutoff for bottom option when selecting with keyboard
2 parents bfaaf8e + 633d4e6 commit 2b90de5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ the specific language governing permissions and limitations under the Apache Lic
15321532
}
15331533
}
15341534

1535-
rb = results.offset().top + results.outerHeight(true);
1535+
rb = results.offset().top + results.outerHeight(false);
15361536
if (hb > rb) {
15371537
results.scrollTop(results.scrollTop() + (hb - rb));
15381538
}

0 commit comments

Comments
 (0)