majd83 / jquery-nicescroll

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

nicescroll won't work with dynamic content #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use a div with no content in it
2. keep adding content dynamically without refreshing the page

What is the expected output? What do you see instead?
It should have the scrollbar when the content goes beyond the div height. But 
it doesn't show the scrollbar

What version of the product are you using? On what operating system?
v290. Ubuntu 10.10

Please provide any additional information below.
I tried calling the plugin dynamically but that didn't work either.

Original issue reported on code.google.com by anurupra...@gmail.com on 17 May 2012 at 3:02

GoogleCodeExporter commented 9 years ago
Same here on Windows, Chrome 19

Original comment by leonhu...@gmail.com on 6 Jun 2012 at 2:38

GoogleCodeExporter commented 9 years ago
Please test 2.9.2 version.
What browser do you use?

If problem persist, try recall "resize()" after content has added.

Original comment by inuya...@gmail.com on 21 Jun 2012 at 10:41

GoogleCodeExporter commented 9 years ago
Hi, How to call resize? If I resize my window my problem goes away so it's 
along the right lines but I need to call that dunction through jquery.

I've tried:
$(window).trigger('resize');
$(window).resize();
nice.resize();

Original comment by rehit...@gmail.com on 30 Jun 2012 at 6:16

GoogleCodeExporter commented 9 years ago
I worked out the resize function.
$("#md_mv_left").getNiceScroll().resize();

But I also noticed a lot of extra ascrail divs building up so I removed them 
with the following:
$('div[id^="ascrail"]').remove();
nice = $("#md_mv_left").niceScroll({cursorcolor:"#CCC"});

Which seemed to fix it :)

Original comment by rehit...@gmail.com on 30 Jun 2012 at 7:22

GoogleCodeExporter commented 9 years ago

Original comment by inuya...@gmail.com on 3 Jul 2012 at 7:42