1

Is there a way to make the scrolling area height of nice scroll shorter than the page height so it starts after the nav and end before the page bottom? I tried that jsFiddle example ( code page , view page ) but this is not a solution for me"

var _nScroll = false;
if (typeof $.fn.niceScroll != 'undefined') {
    _nScroll = {
    horizrailenabled: false,
    zindex: 2,
    cursorborder: "none",
    cursorwidth: "8px",
    cursorcolor: "#515154",
    background: "#cbcdd0",
    autohidemode: false,
    railoffset: {top:'50px',left:0}
    };
    $("html").niceScroll( _nScroll );
}
$(".nicescroll-rails").css({
    'top': '70px',
    'right': '7px',
    'bottom': '50px',
    'height': $(window).height() - 100
});
hsobhy
  • 1,493
  • 2
  • 21
  • 35
  • apply it to a different element instead of `html` tag – charlietfl Dec 06 '14 at 00:10
  • Thanks @charlietfl That will require a huge change in the app pages and structure .. might be a final solution since it's only a design issue. thanks – hsobhy Dec 06 '14 at 12:40

0 Answers0