user520300
user520300

Reputation: 1527

jscrollpane vertical scroll bar

is it possible to turn off the vertical scroll bar in jscrollpane? Also is there a list of variables you can use/set?

$(function()
{
    var api = $('.scroll-pane').jScrollPane({showArrows:false}).data('jsp');
    $('#scroll-up').bind(
        'click',
        function()
        {
            api.scrollByY(-10);
            return false;
        }
    );
    $('#scroll-down').bind(
        'click',
        function()
        {
            api.scrollByY(10);
            return false;
        }
    );
});

Upvotes: 4

Views: 3981

Answers (1)

Llewellyn Collins
Llewellyn Collins

Reputation: 2341

Remove these piece of code from jquery.jscrollpane.css:

.jspVerticalBar
{
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 100%;
    background: red;
}

It worked for me.

Upvotes: 3

Related Questions