1
0
mirror of synced 2024-11-30 00:26:03 +03:00

fixed dropdown alignment in firefox. still need to test IE. #214

This commit is contained in:
Igor Vaynberg 2012-07-16 19:38:02 +03:00
parent 69758f0b71
commit 3ed2cc091a

View File

@ -717,7 +717,7 @@
height = this.container.outerHeight(), height = this.container.outerHeight(),
width = this.container.outerWidth(), width = this.container.outerWidth(),
dropHeight = this.dropdown.outerHeight(), dropHeight = this.dropdown.outerHeight(),
viewportBottom = document.body.scrollTop + document.documentElement.clientHeight, viewportBottom = $(window).scrollTop() + document.documentElement.clientHeight,
dropTop = offset.top + height, dropTop = offset.top + height,
enoughRoomBelow = dropTop + dropHeight <= viewportBottom, enoughRoomBelow = dropTop + dropHeight <= viewportBottom,
enoughRoomAbove = (offset.top - dropHeight) >= document.body.scrollTop, enoughRoomAbove = (offset.top - dropHeight) >= document.body.scrollTop,