Giter Site home page Giter Site logo

Comments (4)

Mtillmann avatar Mtillmann commented on June 8, 2024 1

Hi could you provide some screen capture of the issue? Do you experience similar issues with other sites? does the issue exist with the simplelightbox demo site?

from simplelightbox.

wachilt avatar wachilt commented on June 8, 2024 1

HI Martin,

Apologies… I should have checked the simplelightbox demo page first (which works perfectly on PC). Your suggestion did point me in the right direction though. The site I am currently working on has a fixed header and footer. It looks like these specific selectors are clashing with the CSS of simplelightbox.

from simplelightbox.

andreknieriem avatar andreknieriem commented on June 8, 2024 1

Hey, you could try the fixedClass option too.

from simplelightbox.

wachilt avatar wachilt commented on June 8, 2024 1

Thanks Andre,

I went through my site's core CSS (tiny, only around 30kb worth) and temporarily removed anything I thought may cause the issue. However, I was still seeing content shift on PC browsers only. I then went through simple-lightbox.css and did the same in an effort to trace/debug the issue. Found it.

.sl-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; }

If I change overflow value to either hidden or auto the issue vanishes while maintaining expected simplelightbox functionality and behaviour.

For the record, I don't suggest this is an issue with simple-lightbox.css. I confirm/concur that the simplelightbox demo site works perfectly when tested on same PC hardware. I think it's more to do with a property/value within one (or a combination) of my own selectors that, as yet, I have not been able to trace.

from simplelightbox.

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.