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

?
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e49a98-44d6d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e49a98-44d6d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?