Merge pull request #576 from awlosnie/master

Fixed issue #575 from xdan repository - setPos lost positioning feature
This commit is contained in:
Valeriy 2017-05-12 09:57:33 +05:00 committed by GitHub
commit 1d58f602c4

View File

@ -2018,8 +2018,8 @@
verticalPosition -= windowScrollTop;
}
} else {
if (verticalPosition + dateInputElem.offsetHeight > windowHeight + windowScrollTop) {
verticalPosition = dateInputOffset.top - dateInputElem.offsetHeight + 1;
if (verticalPosition + datetimepicker[0].offsetHeight > windowHeight + windowScrollTop) {
verticalPosition = dateInputOffset.top - datetimepicker[0].offsetHeight + 1;
}
}