xdan / datetimepicker

jQuery Plugin Date and Time Picker
https://xdsoft.net/jqplugins/datetimepicker/
MIT License
3.5k stars 1.52k forks source link

Positioned wrong if the offset of the input is bigger than the window #742

Open OnlyThatGuy opened 4 years ago

OnlyThatGuy commented 4 years ago

https://jsfiddle.net/3fdLapqn On this example you can see that the datetimepicker is positioned left from the input instead of directly below. Without the following three lines https://github.com/xdan/datetimepicker/blob/cda4cbc903d2fce5f53c42dacc5b8f86d54acd78/jquery.datetimepicker.js#L2209 it works. What is their purpose?