1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Merge pull request #2200 from diogotrentini/master

Fix bug related to dropdown position in Firefox and IE
This commit is contained in:
Kevin Brown 2014-03-20 21:29:21 -04:00
commit d9f54a617c

View File

@ -1179,7 +1179,7 @@ the specific language governing permissions and limitations under the Apache Lic
dropTop = offset.top + height, dropTop = offset.top + height,
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) >= $window.scrollTop(),
dropWidth = $dropdown.outerWidth(false), dropWidth = $dropdown.outerWidth(false),
enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight, enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight,
aboveNow = $dropdown.hasClass("select2-drop-above"), aboveNow = $dropdown.hasClass("select2-drop-above"),