Skip to content

Commit ac7de2a

Browse files
committed
Update select2.js
1 parent 1560a39 commit ac7de2a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

select2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ the specific language governing permissions and limitations under the Apache Lic
892892
dropLeft = offset.left,
893893
enoughRoomBelow = dropTop + dropHeight <= viewportBottom,
894894
enoughRoomAbove = (offset.top - dropHeight) >= this.body().scrollTop(),
895+
dropWidth = this.dropdown.outerWidth(false),
895896
enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight,
896897
aboveNow = this.dropdown.hasClass("select2-drop-above"),
897898
bodyOffset,

0 commit comments

Comments
 (0)