bootstrap-datetimepicker
bootstrap-datetimepicker copied to clipboard
With bootstrap 3 scrollable modal, datepicker does not scroll with input but keeps its position...
Hi there, I`m using datetimepicker in bootstrap modal window, but when modal window is scrollable (when it has greater height than body) - after scrolling, datetimepicker just keeps its position and does not scroll with input. It is because dtpicker is appended to body. It would work, I guess, if dtpicker would be appended to modal, but it is impossible to easily do this (I can fix position just after 'show' event is fired, but when i click e.g. month, and days are shown, dtpicker is positioned again automaticaly) Is it possible to set any option 'where to append' or is there any easy solution to fix dtpciker position a keep it fixed? Thx
(attaching images, to see)
before scroll - all ok
after scroll - bad position
I also encountered the same problem..
this pull request should fix the issue https://github.com/smalot/bootstrap-datetimepicker/pull/372
this problem still exists..
This issue still exists and it's not specific to $modal, I'm using date picker within HTML page, and facing same issue
Only need to add the option "container"
Will be fixed by #645
@jarstelfox great fix! Thanks It looks like it fixes only for chrome. In Edge and FF latest it is not working. Any idea why?