Nicescroll is used in pop-up windows, how to solve the dislocation of scrolling windows?

my web page pop-up window is relatively long, need to scroll window to see the entire pop-up window, inside the pop-up window there are many need to use nicescroll, if the window is not scrolling, scroll bar initialization is normal, scroll window, scroll bar fell on the top, looked at the style, because it is relative to the body top positioning, so scroll window, scroll bar will not follow the scroll. I have tried to modify the railoffset configuration and set the elements that need to beautify the scroll bar to absolute positioning, all of which are invalid. Here is my code

clipboard.png

js:


css:


clipboard.png
after scrolling the window, the scroll bar originally in the circle is misplaced

Mar.18,2021

Brother, have you solved this problem? Can you share the answer

?
Menu