We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e51e7a6 + 6c731f4 commit d9f54a6Copy full SHA for d9f54a6
1 file changed
select2.js
@@ -1179,7 +1179,7 @@ the specific language governing permissions and limitations under the Apache Lic
1179
dropTop = offset.top + height,
1180
dropLeft = offset.left,
1181
enoughRoomBelow = dropTop + dropHeight <= viewportBottom,
1182
- enoughRoomAbove = (offset.top - dropHeight) >= this.body().scrollTop(),
+ enoughRoomAbove = (offset.top - dropHeight) >= $window.scrollTop(),
1183
dropWidth = $dropdown.outerWidth(false),
1184
enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight,
1185
aboveNow = $dropdown.hasClass("select2-drop-above"),
0 commit comments