bootstrap-datetimepicker icon indicating copy to clipboard operation
bootstrap-datetimepicker copied to clipboard

With bootstrap 3 scrollable modal, datepicker does not scroll with input but keeps its position...

Open xklid101 opened this issue 10 years ago • 7 comments

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 before_scroll

after scroll - bad position after_scroll

xklid101 avatar Apr 16 '14 08:04 xklid101

I also encountered the same problem..

SargerasWang avatar Nov 26 '14 09:11 SargerasWang

this pull request should fix the issue https://github.com/smalot/bootstrap-datetimepicker/pull/372

c301 avatar Feb 10 '15 08:02 c301

this problem still exists..

geyi avatar Jul 07 '16 07:07 geyi

This issue still exists and it's not specific to $modal, I'm using date picker within HTML page, and facing same issue

Manjunath12-GitHub avatar Sep 07 '16 11:09 Manjunath12-GitHub

Only need to add the option "container"

mochen666 avatar Feb 23 '17 04:02 mochen666

Will be fixed by #645

jarstelfox avatar Aug 23 '17 23:08 jarstelfox

@jarstelfox great fix! Thanks It looks like it fixes only for chrome. In Edge and FF latest it is not working. Any idea why?

faisal-ashfaq-confiz avatar Nov 01 '17 14:11 faisal-ashfaq-confiz