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

Fixed JS breakage due to undefined variable, viewPortLeft.

This commit is contained in:
Oshane Bailey 2014-08-26 21:45:36 -05:00
parent 2a9db24c58
commit 9207f23073

View File

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