GithubHelp home page GithubHelp logo

Comments (5)

tonprince avatar tonprince commented on June 9, 2024

Hi
Please use the following css in your stylesheet, that should override the box sizing which is applied in skel.min.js:

.poptrox-popup,.poptrox-popup:before,.poptrox-popup:after {
  -moz-box-sizing: initial;
  -webkit-box-sizing: initial;
  box-sizing: initial;
}

from jquery.poptrox.

vmcosta avatar vmcosta commented on June 9, 2024

Thanks, but unfortunately it did not work, it works without skel or layers, but once I add one of those scripts it does not work.

The overlay appears but no images, I've tested with Baseline, no luck.

screen_shot_2014-11-13_at_18_30_43

from jquery.poptrox.

ajlkn avatar ajlkn commented on June 9, 2024

First, here's the fix: add this setting to your Poptrox config:

overlayClass: 'poptrox-overlay skel-layers-fixed'

As for why it fixes it: Layers uses CSS transforms by default, which on some browsers (mostly Webkit-based) breaks things that use position: fixed (which Poptrox uses). The two ways to fix it are to either:

a. Turn off CSS transforms using this in your Layers config:

config: {
    transform: false
}

or...

b. Give all of your position: fixed elements the skel-layers-fixed class. This tells Layers to move said elements to one of its non-transformed wrappers, which apparently fixes the weirdness.

from jquery.poptrox.

vmcosta avatar vmcosta commented on June 9, 2024

BOOM ;) great stuff, thanks so much.

from jquery.poptrox.

ajlkn avatar ajlkn commented on June 9, 2024

Awesome :)

from jquery.poptrox.

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.