majd83 / jquery-nicescroll

Automatically exported from code.google.com/p/jquery-nicescroll
1 stars 0 forks source link

I want to hide only the vertical srollbar #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I use the nicescroll release 3.1.9

I want that the horizzontal scrollbar is set to true ( i want to see only 
horizzontal scrollbar)

And i want that the vertical scrollbar is set to false ( i never want to see 
the vertical scrollbar)

can you help me!

how can i do to hide the vertical scrollbar using the nicescroll release 3.1.9?

Thanks

Original issue reported on code.google.com by p.ca...@net-project.it on 3 Apr 2013 at 1:02

GoogleCodeExporter commented 9 years ago
You can use an hack.
Forcing nicescroll thinking page is short than real.
You need to overide getContentSize method to force page height.

    nice = $("#your-div").niceScroll();

    var _super = nice.getContentSize;
    nice.getContentSize = function() {      
      var page = _super.call(nice);
      page.h = nice.win.height();
      return page;
    }

In future I'll add an option to hide vertical/horizontal scroll as css overflow 
property does.

Original comment by inuya...@gmail.com on 3 Apr 2013 at 7:23

GoogleCodeExporter commented 9 years ago
Thankyou for this hack! Works great.

Has there been any progress for a native option to disable the vertical scroll 
bar? I know there is already a property for the horizontal scrollbar 
(horizrailenabled).

Original comment by angelope...@gmail.com on 21 Nov 2014 at 12:01