Comparing version 1.2.7 to 1.2.8
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
[1.2.8] - 2018-12-18 | ||
* improved option `orientation` (checking available space on top when value is `auto`) | ||
[1.2.7] - 2018-12-10 | ||
@@ -5,0 +8,0 @@ * fix bug when used both options `repick` and `minDays` (on repick date `minDays` was ignored) |
@@ -979,3 +979,3 @@ /** | ||
if (orientation[0] == 'auto' || !(/top|bottom/.test(orientation[0]))) { | ||
if (rect.bottom + calRect.height > window.innerHeight) { | ||
if (rect.bottom + calRect.height > window.innerHeight && window.pageYOffset > calRect.height) { | ||
top = (rect.top + window.pageYOffset) - calRect.height; | ||
@@ -982,0 +982,0 @@ } |
{ | ||
"name": "lightpick", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Javascript date range picker - lightweight, no jQuery", | ||
@@ -5,0 +5,0 @@ "main": "lightpick.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110559