There is such a page on the site where the bootstrap datepicker normally worked on the sidebar, after the sidebar was converted from static to “sticking”, problems started with the same calendar, namely it works, but it appears at the very top of the slider, which is not there is ok.

  • Tell me, where should the calendar appear? - Alexander Ischenko
  • Under the little calendar in the sidebar - Jack London

1 answer 1

Instead of code

var n_left = f_getPosition (this, 'Left'), n_top = f_getPosition (this, 'Top') + this.offsetHeight; 

set matched constants

 var n_left = x, n_top = y; 

and made sure that the calendar would be attached not to the body, but to a div with the property position: relative; inside the sidebar section

 document.getElementsByClassName("sticky_temp_wrap").item(0).appendChild(e_cal); 

In principle, the calendar does not appear under each input as before, but both in 1 place, but this is not a problem, I think, the main thing is that the problem is solved anywhere. More on the toaster: https://toster.ru/q/434434