majd83 / jquery-nicescroll

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

Scroller donot work when emty div filled with html data #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. After the page load. I click a button to fill a EMPTY div[id="div1"] content 
with with html using jquery.
2. After filling  initialzing the niceScroll() for that div[id=div1]. the 
scroll do not show even though the html data is larger than the div height 
currently set. If i resize the browser the scroller shows
3.

What is the expected output? What do you see instead?
if i donot use the plugin but use the default browser scroller on div it works 
as exprected. If contain size increases in a div through jquery html injection. 
The scroller works. The plugin donot.

What version of the product are you using? On what operating system?
I am using http://areaaperta.com/nicescroll/js/jquery.nicescroll.min.js

Please provide any additional information below.

Original issue reported on code.google.com by khal...@minasu.net on 21 Jun 2012 at 2:10

GoogleCodeExporter commented 9 years ago
After content added, try to call $("your-div-id").getNiceScroll().resize()
So you force nicescroll to check div content size and enable scrollbar when 
needed.

Original comment by inuya...@gmail.com on 25 Jun 2012 at 9:18

GoogleCodeExporter commented 9 years ago
Thank it worked. Quick question how do i fix the gap at right side 
http://screencast.com/t/r6yqLdKd

Original comment by khal...@minasu.net on 25 Jun 2012 at 12:08

GoogleCodeExporter commented 9 years ago
I'll add a parameter to adjust right padding on the next version.

Original comment by inuya...@gmail.com on 26 Jun 2012 at 8:50

GoogleCodeExporter commented 9 years ago
Parameter added on RC1 version.
http://bit.ly/MUsXXs

Original comment by inuya...@gmail.com on 27 Jun 2012 at 8:55

GoogleCodeExporter commented 9 years ago
Released 2.9.5 version. Offset parameter added.

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