I'm trying to set a static height of a vertical scrollbar in the jscrollpane library. I have tried settings the track height via CSS and that did not work.
Jscrollpane has a verticalTrackHeight
settings variable, but it cannot be set by the user. The only way I've determined to do it is to modify the library slightly:
Within the initialiseVerticalScroll
method change the following line from:
verticalTrackHeight = paneHeight;
To:
if(typeof settings.verticalTrackHeight === "number") {
verticalTrackHeight = settings.verticalTrackHeight;
} else {
verticalTrackHeight = paneHeight;
}
The height of the vertical track now be set via settings.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.