GithubHelp home page GithubHelp logo

Comments (11)

inuyaksa avatar inuyaksa commented on August 23, 2024

Hi, very interesting problem.
Soon It have to be fixed.

I write a workaround, you can find it at
http://www.areaaperta.com/nicescroll/test/issue20/
Look at setFixedRail function in the page source.

from jquery.nicescroll.

praveenbm5 avatar praveenbm5 commented on August 23, 2024

Hey there,

Thank you for the solution.

Even before that I observed that if we use nicescroll with a wrapper div as
pointed in the examples, the discussed bug does not affect its
functionality.

Praveen

On Wed, Mar 14, 2012 at 2:18 AM, Inuyaksa <
[email protected]

wrote:

Hi, very interesting problem.
Soon It have to be fixed.

I write a workaround, you can find it at
http://www.areaaperta.com/nicescroll/test/issue20/
Look at setFixedRail function in the page source.


Reply to this email directly or view it on GitHub:

#20 (comment)

from jquery.nicescroll.

inuyaksa avatar inuyaksa commented on August 23, 2024

Yep.
On normal div rail/cursor bar has absolute positioned about body context.
On wrapper div rail/cursr bar has relative positioned about main div.

from jquery.nicescroll.

praveenbm5 avatar praveenbm5 commented on August 23, 2024

Hello Inuyaksa,

Is there anything we can do to initiate resize and rerender scroll bar
after updating the contents of the Scrollable Div using Ajax?

Thank you.

On Fri, Mar 16, 2012 at 2:51 AM, Inuyaksa <
[email protected]

wrote:

Yep.
On normal div rail/cursor bar has absolute positioned about body context.
On wrapper div rail/cursr bar has relative positioned about main div.


Reply to this email directly or view it on GitHub:

#20 (comment)

from jquery.nicescroll.

inuyaksa avatar inuyaksa commented on August 23, 2024

You have to call resize method.

$("your div").getNiceScroll().resize();

Have you tried last version? I have insert code to detect div position changing.

from jquery.nicescroll.

praveenbm5 avatar praveenbm5 commented on August 23, 2024

Thank you!

Will try now!

On Fri, Apr 20, 2012 at 2:10 AM, Inuyaksa <
[email protected]

wrote:

You have to call resize method.

$("your div").getNiceScroll().resize();

Have you tried last version? I have insert code to detect div position
changing.


Reply to this email directly or view it on GitHub:

#20 (comment)

from jquery.nicescroll.

pushpinderbagga avatar pushpinderbagga commented on August 23, 2024

I am simply doing this - let me know if it works

    $(window).bind('scroll',function(){
        $("#element").getNiceScroll().resize();
    });

from jquery.nicescroll.

inuyaksa avatar inuyaksa commented on August 23, 2024

I suggest to call resize method only after content has added to div.
Binding scroll trigger resize every time div has scrolled. (many many times at second)

from jquery.nicescroll.

ahmadassaf avatar ahmadassaf commented on August 23, 2024

hello,

i am having a problem with the absoultely positioned scrolls as i have absolutely positioned items off the screen, and when i apply the nicescroll the page will scroll horizontally ... the fixed positioning fixes it .. but your hack above doesnt work .. is there a way to have as a parameter .. to choose between absolute or fixed ?

Thanks

from jquery.nicescroll.

pushpinderbagga avatar pushpinderbagga commented on August 23, 2024

Could you please show us a demo of what you are trying to do - would surely help!

from jquery.nicescroll.

ahmadassaf avatar ahmadassaf commented on August 23, 2024

of course, if you go to http://ahmadassaf.com/blog/main/#1

then in the About me section, you will see the timeline implemented .. if you kindly scroll to slide (7) dated Septemeber 2010 and then simply apply this on the console:

$('.vco-slider .slider-item').niceScroll();

then you will notice that a horizontal scroller shows .. and that there are lots of scroller divs appended with absolutely positioned property which causes that

Thanks a lot

from jquery.nicescroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.