Giter VIP home page Giter VIP logo

Comments (4)

inuyaksa avatar inuyaksa commented on May 21, 2024

When you change position of a div with nicescroll you have to force refresh of rails position.
Call resize method so scrollbar position has updated.

Have a look at shuffle example, you can find some advice to manage movable divs:
http://www.areaaperta.com/nicescroll/dev/shuffle.html

from jquery.nicescroll.

david-sabata avatar david-sabata commented on May 21, 2024

You were right, combination of .resize().hide() (called after all jQuery effects finish) works!

I guess there is no need for real removing of NiceScroll from an element, so I close this issue.

Thank you for your great work! ;-)

from jquery.nicescroll.

rbrickyboy avatar rbrickyboy commented on May 21, 2024

Hi,
I got mine working fine using $("your element").niceScroll().remove();
make sure you set your element css to overflow:hidden so when it removes the niceScroll, browser doesn't replace it with default scrollbar,
Then at the callback just initialize it niceScroll again.

from jquery.nicescroll.

leo9223 avatar leo9223 commented on May 21, 2024

@rbrickyboy I think $("#scrollingDiv").getNiceScroll().remove(); is better. Works for me.

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.