mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Fixed issue #575 from xdan repository - setPos lost positioning feature
This commit is contained in:
parent
ec0865991d
commit
b9827fe43f
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user