1
0
mirror of synced 2025-02-04 14:19:23 +03:00

Update select2.js

This commit is contained in:
MaxxSoftware 2012-11-15 17:26:19 +06:00
parent 1560a3918a
commit ac7de2a756

View File

@ -892,6 +892,7 @@ the specific language governing permissions and limitations under the Apache Lic
dropLeft = offset.left, dropLeft = offset.left,
enoughRoomBelow = dropTop + dropHeight <= viewportBottom, enoughRoomBelow = dropTop + dropHeight <= viewportBottom,
enoughRoomAbove = (offset.top - dropHeight) >= this.body().scrollTop(), enoughRoomAbove = (offset.top - dropHeight) >= this.body().scrollTop(),
dropWidth = this.dropdown.outerWidth(false),
enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight, enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight,
aboveNow = this.dropdown.hasClass("select2-drop-above"), aboveNow = this.dropdown.hasClass("select2-drop-above"),
bodyOffset, bodyOffset,