Quantcast
Channel: DZS Scroller - WordPress Scrollbar Plugin
Viewing all articles
Browse latest Browse all 44

Responsive does now resize with reinit()

$
0
0
I am using this version of the Scrollbar done right script:
http://codecanyon.net/item/dzs-scroller-jquery-scrollbar-done-right/293380

I use the following jQuery code to reinitiate the scrollbar as the window is resized.

$('#scroller, .scroll-pane').scroller( { 
force_onlyy: 'on'
});
    function onResize() {
        $('#scroller').scroller.reinit();
        console.log('resize');
    }
    onResize();
    $(window).resize(function () {
        onResize();
    });


At certain page widths, the scroll area is reduced in height using CSS media queries. However, this does not respond.

My URL:

Viewing all articles
Browse latest Browse all 44

Trending Articles