Fixed issue #575 from xdan repository - setPos lost positioning feature

This commit is contained in:
Adrian W 2017-05-10 09:37:24 +02:00
parent ec0865991d
commit b9827fe43f

View File

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