Giter Site home page Giter Site logo

Comments (4)

vitch avatar vitch commented on June 3, 2024

Are you using the latest version of jScrollPane? Do you have a URL demonstrating the problem?

jScrollPane needs to remove your content from the page and re-add it when it wraps the content in an extra div. It is possible this is causing problems - you could try re-calling your PNG fix code after initialising jScrollPane.

from jscrollpane.

BassEast avatar BassEast commented on June 3, 2024

Latest version, yep.

Here is demonstration: http://yamble.ru/projects/zewa/production.html
First 6 images are PNG.

Re-calling my PNG fix code after initialising jScrollPane — how to do this? You mean to combine 2 script in one file?

Moreover, not all images in a div with id=pane1 time to load when jScrollPane.js already put the scroll.. It happens when i click CTRL F5

from jscrollpane.

vitch avatar vitch commented on June 3, 2024

Re. the images having time to load, you need to either give them a width and a height in the HTML or you need to reinitialise your scrollpane (this is explained in the examples of the site: http://jscrollpane.kelvinluck.com/image2.html and http://jscrollpane.kelvinluck.com/image.html ).

Re-calling the PNG fix code after initialising jScrollPane, move the lines which start with DD_belatedPNG.fix after the line $('#pane1').jScrollPane();

from jscrollpane.

BassEast avatar BassEast commented on June 3, 2024

Thanks a lot!
All fixed.

from jscrollpane.

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.