开发者

jScrollPane Scrollbar height relative to div

开发者 https://www.devze.com 2023-01-20 01:33 出处:网络
I have a resizable div which is using custom scrollbars of jScrollPane. I want to have vertical scrollbar above the resize handle, is it possible to do so?

I have a resizable div which is using custom scrollbars of jScrollPane.

I want to have vertical scrollbar above the resize handle, is it possible to do so?

I tried changing verticalTrackHeight to be alwa开发者_StackOverflow中文版ys 40 less and bar size reduces too, but when we scroll the scroller goes to the bottom.

Here is my code http://www.jsfiddle.net/WRMSn/4/


It seems like some extra space is somehow being added below the scrollbar. You can use a jspCap to get around this using some code like this:

.jspCapBottom {
    display: block;
    height: 22px;
}

I added that to your fiddle and it seems to work well: http://www.jsfiddle.net/UnEqt/


You forgot ; on var pane = $("#container")

It should be var pane = $("#container");

0

精彩评论

暂无评论...
验证码 换一张
取 消