1
0
mirror of synced 2024-11-22 13:06:08 +03:00

Merge pull request #2642 from b4oshany/master

Fixed JS breakage due to undefined variable, viewPortLeft.
This commit is contained in:
Kevin Brown 2014-08-27 15:26:39 -04:00
commit 8460e83df0

View File

@ -1244,7 +1244,7 @@ the specific language governing permissions and limitations under the Apache Lic
return dropLeft + dropWidth <= viewPortRight;
},
enoughRoomOnLeft = function() {
return offset.left + viewPortLeft + container.outerWidth(false) > dropWidth;
return offset.left + viewPortRight + container.outerWidth(false) > dropWidth;
},
aboveNow = $dropdown.hasClass("select2-drop-above"),
bodyOffset,